| New signals service! | |
|
|||||||
| Register in Forex TSD! | |
|
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time). Click here to register and get more information |
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
oh the only thing i want is to call it und get the current trend back.
like "1" for up "2" for down and "3" for side. thats whats im trying to get done. cause your code works right. i know know my main problem is the lack of knowledege about the indicator so i cant interpret the returnvalues in the right way. but i cant find some info on for it. greets homi |
|
||||
|
Quote:
I'm so sorry for the delay. Please find attached modified version of LSMA and iCustom_Demo. I've added a new buffer to LSMA to hold the current color (1=red, 2=green and 3=yellow). Where's (1=downtrend , 2=uptrend and 3=no trend). To use iCustom function to get the value of this buffer, you may write: Code:
double clr = iCustom(NULL,0,"LSMA in Color",14,1500,5,0); |
|
|||
|
iCUSTOMS EXPERT ADVISOR DEMO
Quote:
Hi Can we get one of these for experts too thanks. Doc |
|
||||
|
Just wanted to get the end values of the iCustom line clarified in my head.
Line and Shift So if I have an Indicator like VQ that only has one graphical line and I what to find out, on the previous closed candle, if it signaled up Arrow for a Buy condition or if it signaled a Sell condition by going down Arrow I would need to set up two condition like; Code:
double VQ0 = iCustom(NULL, 0, "VQ", false,0,5,3,1,5,true,false,true,true,false,true,1485, 1,1); double VQ1 = iCustom(NULL, 0, "VQ", false,0,5,3,1,5,true,false,true,true,false,true,1485, 2,1); Then my Buy and Sell code should be; correct? Code:
//Buy if (VQ0>VQ1 && ((EachTickMode && !TickCheck) || (!EachTickMode && (Bars != BarCount)))) //Sell if (VQ0<VQ1 && ((EachTickMode && !TickCheck) || (!EachTickMode && (Bars != BarCount)))) Code:
double VQ0 = iCustom(NULL, 0, "VQ", false,0,5,3,1,5,true,false,true,true,false,true,1485, 1,1); double VQ1 = iCustom(NULL, 0, "VQ", false,0,5,3,1,5,true,false,true,true,false,true,1485, 2,1); double QQEA0 = iCustom(NULL, 0, "QQEA",5,14,4.236, 1, 1); double QQEA1 = iCustom(NULL, 0, "QQEA",5,14,4.236, 2, 1); Code:
//Buy if (VQ0>VQ1 && QQEA0>QQEA1 && ((EachTickMode && !TickCheck) || (!EachTickMode && (Bars != BarCount)))) //Sell if (VQ0<VQ1 && QQEA0<QQEA1 && ((EachTickMode && !TickCheck) || (!EachTickMode && (Bars != BarCount)))) I Only want one trade per Buy/Sell Signal. ThanksAttached are two EA's one called My First EA that someone modified for me because they thought the conditions were wrong and one I did using a template call YourExpertAdvisor. Are they both correct? Thank you Last edited by matrixebiz; 02-02-2008 at 06:18 PM. |
![]() |
| Bookmarks |
| Tags |
| icustom |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Easy iCustom and Alerts! | codersguru | Indicators - Metatrader 4 | 50 | 09-18-2008 01:02 PM |
| iCustom question .. | yaniv_av | Indicators - Metatrader 4 | 16 | 06-20-2008 04:37 PM |
| icustom | maje | Questions | 24 | 12-05-2007 09:26 AM |
| I need help on creating an Icustom statement for my EA using this indicator as input! | iscuba11 | Expert Advisors - Metatrader 4 | 4 | 09-11-2006 07:18 PM |
| iCustom() problem | billritz | Indicators - Metatrader 4 | 5 | 08-23-2006 07:22 AM |