Page 1 of 1

mark only one bar when condition occurs

Posted: Sun Jan 15, 2023 3:38 pm
by michalw
I would like to mark (ultimately enter the position)
if the condition is met (EMA intersection) and the first bar after the condition occurs and after the fulfillment of additional conditions (on the screenshot - above the price level).
If the next EMA intersection occurs - then again we consider only the first bar after the + condition above the price level.
I can't write it with an "if" construct.
He always only receives a bar when both conditions are met - that is, when the EMAs cross and if the bar is above the price - and that's not what I mean.
Can someone help me write this?

screenshot
https://im.ge/i/sUD8rz

Re: mark only one bar when condition occurs

Posted: Wed Jan 18, 2023 8:44 am
by Steve Burman
Can you pls send me the code for both conditions? I'll check it out