Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Ayumi, 1 invisible), 584 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Initial Stop #453251
07/14/15 15:05
07/14/15 15:05
Joined: Feb 2014
Posts: 181
R
RTG Offline OP
Member
RTG  Offline OP
Member
R

Joined: Feb 2014
Posts: 181
I have traded in the past a mechanical system using the 'traders trick entry' setup. In that case I was placing manual orders using charts. I want to backtest the same strategy with Zorro.

The traders tick entry occurs when price breaks a 52 week high or low. The bar that breached the high or low is used to set a stop entry using the day high/ow as the stop entry. In addition, the low/high is used as the initial stop loss.

So for example if prices broke through a 52 week high of $10 and the bar that did it had a high of 10.10 and a low of 9.90. A stop entry would be set at 10.11 and stop loss of 9.89.

This is is where my issues lies.

How do I set an initial stop to refer to the setup bar?

I can use TradePriceOpen to the get the value of the entry price but how do I get the value of the low of the setup bar?

Re: Initial Stop [Re: RTG] #453267
07/15/15 14:10
07/15/15 14:10
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
If I understood you right, you just need to set Stop = priceLow() before entering the trade.


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