How do i check if distance of 2 EMA its increasing or decreasing??
-

RED-EMA:600
GREEN-EMA:300
BLUE-EMA:90
YELLOW: 5i was trying to do this:
between two periods of 30 candles for example...you can see like yellow and red get distance like green and blue...what im trying to get..its to take chance and increase take profit while it increase...so i can reach bigger profits...and close the trade when there a cut between two of the intended EMA..to open trade and to close it i know its easy to determine..but how i increase the take profit and also reach for a breakeven by the diff of the checkpoints..and how i do compare...the check distance between EMA..from the opened trade..and the next checkpoint period..
i think this it quite good idea..but im lost a lil bit...i guess i should save on a variable..first the opening point...and the checkpoint distance value between the EMA.if its increasing after the first checkpoint and a second one do what i want to do..if its decreasing just wait the breakeven(i also dont know which point or how to save teh bigger profit)
what i mean...i guess its: every N bars..if EMAs distance increasing do duty..
aww..im confused...i think i must consult with the pillow
here another image:

-
@yakusho If you check if MA is < or > you can - high from low and save in a variable, this will give you a value that you can use fro distance. There is a block called check distance, you could check and when true modify a variable to change the value used for BE etc, if false check distance in another block and modify variable to a different value.
-

ok, but it seems i wont get a return value from the check distance to know the exact distance diference..it seems i can compare if its increasing..altho i guess i can do it textual, maybe.
for example on the buy chance of the last pic on the Q. as im coding, EM5 ist over EMA600 if true then when EMA5 cuts up EMA300, open trade. then i would like to check if EMA90 distance is increasing against EMA600, if true increase take profit and change breakeven by %TP, and i guess to stop trade if EMA5 cuts down EMA90..close trade...but lil later the EMA90 distance against EMA300 and EMA600 its decreasing and it recieve another open trade signal..when EMA5 cuts up EMA300 but just for low peak...so it will open..but ill close it cuz i should recieve an decreasing signal..between EMA90 and EMA600

i think its it the most complest bot id tried to make..i guess the low peaks..are the trouble..but ill try to profit some pips from them
-
@yakusho You can store the value of both MA in different variables and then calculate the distance via 'formula' block. Just repeat the calculation every new candle and compare the sum result every new candle. If the sum is bigger now, you got it.