how put one order if have signal - page 3 123 New comment Simon Gniadkowski 2012.12.13 14:22 #21 RaptorUK: How do you know when the signal has gone ? ?? phipho 2012.12.13 15:05 #22 RaptorUK: ? when EMA 14 cut EMA 100. i will order one command. Simon Gniadkowski 2012.12.13 15:19 #23 phipho: when EMA 14 cut EMA 100. i will order one command. So when your signal is set place your trade and toggle a flag . . . SignalSet = true; but only place the tradeif(SignalSet == false) // or if(!SignalSet) So now your SignalSet flag will be true and you won't have any more trades placed for the same signal . . . When you have detected that your signal has gone . . .SignalSet = false; . . . and next time you have a signal to place the trade you can . . . phipho 2012.12.14 09:34 #24 RaptorUK: So when your signal is set place your trade and toggle a flag . . . but only place the trade So now your SignalSet flag will be true and you won't have any more trades placed for the same signal . . . When you have detected that your signal has gone . . . . . . and next time you have a signal to place the trade you can . . . now i must put this code where my EASignalSet = true Simon Gniadkowski 2012.12.14 10:18 #25 phipho: now i must put this code where my EA Think about it and figure it out . . . phi nuts 2012.12.14 10:30 #26 phipho: because i'm new guy learn write code mql4. I must learn write a easy EA. Do you know what moving average is ?. If you do what I said, you will be able to answer RaptorUK's question "How do you know when the signal has gone ?" and you won't have many orders on every bars. How to get an [ARCHIVE] Any rookie question, [Archive] Learn how to 123 New comment
How do you know when the signal has gone ?
?
when EMA 14 cut EMA 100. i will order one command.
when EMA 14 cut EMA 100. i will order one command.
So when your signal is set place your trade and toggle a flag . . .
SignalSet = true;but only place the trade
So now your SignalSet flag will be true and you won't have any more trades placed for the same signal . . .
When you have detected that your signal has gone . . .
SignalSet = false;. . . and next time you have a signal to place the trade you can . . .
So when your signal is set place your trade and toggle a flag . . .
but only place the trade
So now your SignalSet flag will be true and you won't have any more trades placed for the same signal . . .
When you have detected that your signal has gone . . .
. . . and next time you have a signal to place the trade you can . . .
now i must put this code where my EA
SignalSet = truenow i must put this code where my EA
because i'm new guy learn write code mql4. I must learn write a easy EA.
Do you know what moving average is ?.
If you do what I said, you will be able to answer RaptorUK's question "How do you know when the signal has gone ?" and you won't have many orders on every bars.