Gamestudio Links
Zorro Links
Newest Posts
IG plugin initial release
by sodiumchloride. 09/22/20 20:53
Using STL in Zorro strategies
by AndrewAMD. 09/22/20 17:01
Rubbish data from Yahoo
by DanielX. 09/22/20 14:37
assert
by Grat. 09/22/20 12:14
MT4 - use more Zorro script
by Grat. 09/22/20 06:49
Single advise model for portfolio
by jmlocatelli. 09/21/20 19:41
AUM Magazine
Latest Screens
The Space Between
Pogostuck: Rage With Your Friends
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Who's Online Now
4 registered members (danatrader, Grat, Dooley, kvm), 466 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
NewBorn, 3dvg, secretagentman, distribution, EditeY
18515 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How to plot stop TradeStopLimit #481099
08/06/20 15:03
08/06/20 15:03
Joined: May 2020
Posts: 31
A
AdamWu Offline OP
Newbie
AdamWu  Offline OP
Newbie
A

Joined: May 2020
Posts: 31
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);
}

Re: How to plot stop TradeStopLimit [Re: AdamWu] #481115
08/07/20 02:42
08/07/20 02:42
Joined: Apr 2008
Posts: 320
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 320
Austria
The MAIN type parameter goes back to the main chart.

Re: How to plot stop TradeStopLimit [Re: AdamWu] #481117
08/07/20 07:46
08/07/20 07:46
Joined: Mar 2019
Posts: 249
D
danatrader Online
Member
danatrader  Online
Member
D

Joined: Mar 2019
Posts: 249
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.


Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1