How can I create condition trade with cross above or cross below
-
I don’t know how to create loop cross above or below firstly
Ex: condition 1- Kijun line cross above/below span B line
If condition 1 is right then check all other conditions (trade is not opened at moment when kijun cross span B)
If condition 1 is wrong, it out and look for another cross above/below firstly
Someone help me if you experience, thank a lot
Sorry about my English -
@haidang8055 You will need a variable controlling when the crossing happened. In this example I dod a brossing up only:
https://fxdreema.com/shared/83jjKveKc
Don't forget to reinitiate the variables when required.
-
@l-andorrà first of all thank you a lot for supporting, i think BLOCK 3 - boolean value have to be EQUAL true (not above)
it is working but i wonder i just want to open ONLY FIRST trade (BUY) when condition (KiJun cross above Span B appearing) is right, no more BUY trade until KiJun cross below SpanB. Then KiJun cross below Span B appearing i also want to open ONLY FIRST trade - SELL.
as your example, it opens alot trade when KiJun cross above Span B appearing. -
@haidang8055 LOL, you're right! XD. Sorry for that mistake. On your questions, I'm not completely sure what you need. Can you please upload a screenshot showing it?
-
@l-andorrà 
i want to open 1 trade (green V), it is firt time matching other conditions after condition (KiJun cross up Span B line) is right, i dont want to open trade anymore (red X). I hope you can understand what i need -
@haidang8055 Ok. I see the problem. You need the first crossing only. Teh problem is how you define that first crossing. How do you do it on the chart? Why the green V is the first one and not the first red X? I do not see what happens before in the chart. Maybe the green V is the secod or third crossing from a previous crossing? You know what I mean?
-
@l-andorrà I see, how to create condition that only one trade after KiJun cross span B, and during KiJun is above Span B, when KiJun is cross below span B and during it is under I start to find one new trade (sell)
I mean only one trade for up, only one trade for below -
@haidang8055 Then you need to reinitiate the variable immediately after the buy is open:
https://fxdreema.com/shared/I5L63743b
Remember to duplicate it for a sell with another variable.
-
@l-andorrà you are a legend of fxdreema. thanks
-
@haidang8055 LOL!
