How to plot stop TradeStopLimit

Posted By: AdamWu

How to plot stop TradeStopLimit - 08/06/20 15:03

For open_trades, I would like to plot the min price (where trade will stop loss), and max price (where trade will take profit). I tried this, but:
1. Are TradeTrailLimit, TradeStopLimit the right parameters? I set Stop, Trail, TrailStep, and TrailSlope.
2. They are plot to a new chat, how can I plot them to the main price chart?

Code
for(open_trades) {
    	plot("Dotted",TradeTrailLimit,DOT,RED);
	plot("Dotted",TradeStopLimit,DOT,GREEN);
}
Posted By: Petra

Re: How to plot stop TradeStopLimit - 08/07/20 02:42

The MAIN type parameter goes back to the main chart.
Posted By: danatrader

Re: How to plot stop TradeStopLimit - 08/07/20 07:46

plot("Dotted",TradeTrailLimit,MAIN|DOT,RED);
plot("Dotted",TradeStopLimit,MAIN|DOT,GREEN);

Also you want not to name both "Dotted", rather name them Dotted1 and Dotted2.

https://zorro-trader.com/manual/en/plot.htm
MAIN - for plot, plot this and all following curves in the main price chart.
© 2024 lite-C Forums