Is it possible to immediately plot a sell signal once a condition is met? With the code below the sell signal is plotted only once the condition is satisfied and the tick count is zero (bar closed).
I would like to force the Renko chart to plot a box for every movement of 0.25 and a signal once the condition is met, but maintain the tick resolution. Any help would be appreciated.
Code: Select all
[IntrabarOrderGeneration = true]
Inputs:
Int ABC(1);
var:
intrabarpersist var0(0);
var0 = XYZ;
condition1 = var0 > 5;
condition2 = var0 < 10;
if condition1 then
Buy ( "B" ) this bar at Close;
if condition2 then
Sell this bar at Close;
condition3 = var0 < 10;
condition4 = var0 > 5;
if condition3 then
Sell short ( "S" ) this bar at Close;
if condition4 then
buytocover this bar at Close;