pls help
-
can you exit a trade on the following condition
candle id0 is 20 pips away from 50ema ?
-
@ralph yes you can. in the condition block under the moving average, there's (adjust) in this place you can input either +0.002 or -0.002 depending on if you want it above or below the moving average. the reason it is 0.002 and not (20) because it sees it as price and not as pips.
now that I think about it, it may be different for different currency pairs.
-
thank you , would you mind checking my simple bot
-
@ralph sure. you can share a link of the project
-
-
i actually want one of my exit rules to be ema cross ,cant get it to work
and the ea does not always open on the cross , why will it only work sometimes
ps my ea is on a vps
-
@ralph the problem may lie with candle ID0. you see at ID0 the Moving Averages are dynamic and moving, and they only stop moving at candle ID1.
-
all else fine ?
-
@ralph i couldn't say. i haven't seen the project
-
-
Your blocks ID 41, 44, 48 and 51are specified to filter buys and sells whereas they are supposed to close buys or sells only. That is messing your logic. You need to coordinate those blocks with their closing blocks.
-
@ralph I love how everything is so neat. you should look at my work and how messy it is

in any case, it seems that you have overcomplicated a simple strategy. there are many blocks that are not needed here. as l'andorra mentioned the pink blocks are not needed here. and it seems that you have some blocks set to be turned off but there is no other place to turn them back on.
and also there are many tricks that can help you a bit. example: instead of having 2 (turn off blocks) blocks with one for 20 and one for 19, you can just have 1 block and inside write ( 19,20 )
-
i got it to work correctly , but only on 1 pair
as soon as i load it on more than 1 pair it has a mind of its own
so that brings me to my new problem
how to let it run correctly on several pairs
-
@ralph I'm not really sure but maybe changing the magic number will help
-
thx , did not think of that