Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Trading Journey
by howardR. 04/24/24 20:04
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (AndrewAMD, howardR, EternallyCurious, 1 invisible), 770 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 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: 45
A
AdamWu Offline OP
Newbie
AdamWu  Offline OP
Newbie
A

Joined: May 2020
Posts: 45
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: 586
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 586
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: 357
D
danatrader Offline
Senior Member
danatrader  Offline
Senior Member
D

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