So it paints a canddle in blue when the conditions are met,thats works very well
1-I want it to continue to paint my bar in blue (if for example 20 ema is rising =true) if my ema is still rising in the next canddle,so it will stop only paint when my ema is not rising anymore ema rising =false
2-I will use this indicator on a strategy:
when myindicator=1
open a order
but when I have the signal,if the order is not opened in next canddle, it just close the stop order,but I want it to refresh the stop order to the next canddle
I will add the 20ema rising=true condition and what I need to do next to refresh order to next canddle??
thanks for any help
protected override void OnBarUpdate()
{
if(CurrentBar<2) return;
if(Close[0]>Open[0] ...etc.....(my conditions)
ema20 rising=true
{
BarBrush = BarColor;
InsideBarFound[0] = 1;
}
else
InsideBarFound[0] = 0;
}
#region Properties
Comment