dap711
Active member
So, I've been trying to figure out a way to overcome the "stuck" label generation issue when trading paper. I think the best fix is to do crossovers instead of < and >.
Example:
AddLabel(ShowAutoKeyLabels and diff[1] > diff[2] and low > MA and OpenOrders < 1 and (if UseVolumeAsFilter then VolStrength>0 else yes), " BUY ", CreateColor(153, 255, 153));
Change to
AddLabel(ShowAutoKeyLabels and diff[1] crosses above diff[2] and low > MA and OpenOrders < 1 and (if UseVolumeAsFilter then VolStrength>0 else yes), " BUY ", CreateColor(153, 255, 153));
This way the label would only be generated for the one candle. You would then need to set the "Wait" in Macro Recorder to the same amount of time as the candles on the chart. Trading one minute, wait one minute .. ect. With those 2 modifications, you would be able to trade paper without issue.
Dwain
Example:
AddLabel(ShowAutoKeyLabels and diff[1] > diff[2] and low > MA and OpenOrders < 1 and (if UseVolumeAsFilter then VolStrength>0 else yes), " BUY ", CreateColor(153, 255, 153));
Change to
AddLabel(ShowAutoKeyLabels and diff[1] crosses above diff[2] and low > MA and OpenOrders < 1 and (if UseVolumeAsFilter then VolStrength>0 else yes), " BUY ", CreateColor(153, 255, 153));
This way the label would only be generated for the one candle. You would then need to set the "Wait" in Macro Recorder to the same amount of time as the candles on the chart. Trading one minute, wait one minute .. ect. With those 2 modifications, you would be able to trade paper without issue.
Dwain