Dont' think this strategy is painting the picture I expected. Seeareas highlighted grey.
The candle type on the chart is HA. However, the plot is showing indications in areas that dont seem to match what the chart candles indicate.
What am I missing? My first time coding a strategy. Love this stuff!
def haOpen = (open[1] + close[1]) / 2;
def haClose = (open + close + high + low) / 4;
# test
plot haLongEntry = (haOpen < haClose) and (haOpen[1] > haClose[1] );
haLongEntry.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
The candle type on the chart is HA. However, the plot is showing indications in areas that dont seem to match what the chart candles indicate.
What am I missing? My first time coding a strategy. Love this stuff!
def haOpen = (open[1] + close[1]) / 2;
def haClose = (open + close + high + low) / 4;
# test
plot haLongEntry = (haOpen < haClose) and (haOpen[1] > haClose[1] );
haLongEntry.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);