Question about conditions
-
Ok for example if I had a condition for 6ema and 18ema x over, then a few other conditions underneath it before a buy condition is met. But the condition before buy is not met does the script:-
A) start back at the top and tries to meet all conditions again
B) stops at the current not met condition like a gate and as soon as that condition is met opens to finally initiate the trade? -
@rawkus123 Always one tree of blocks one time running going to end,
if any condition isn't true the tree back to start again -
If you are working on the 'on Tick' tab, every tick arriving to the EA will execute blocks from lower ID to higher ID on top of each tree. Then, within the tree, from up to down. Always. If any condition block is not met, all blocks below will be ignored. Then a new tick will arrive and the process will begin again from lower ID to higher ID on top of each tree. Then, within the tree, from up to down.
-
ok so now knowing that it if a condition isn't met it starts back at lowest id, how does one stop at that condition until it is met?
-
@rawkus123 you should stop the tree
please share the strategy because I can better help you -
@rawkus123 Not exactly, sorry. When a block condition is not met, all others below it will not be executed. Then all others heading block trees with higher IDs WILL be executed. Then anew tick will arrive and, in effect, everything will be executed again.
-
ok so what im trying to accomplish is:-
conditions as followed
- 6,18ema x over
- on or 1 after x over swing high
- within 4 candles after swing high but no more follow price pullback with a pending order placed above highest price

-
THe easiest way will be if you please share your project.
-
lol whats the point my project doesn't make any sense XD so ive tested my project and it does sometimes make a mark where i want the buy point to be but it also drops arrows at wrong places and doesnt place them at all when it should :S
https://fxdreema.com/shared/yajFAC7bc