Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/20/24 01:28
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
1 registered members (AndrewAMD), 609 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Enter Trade with managing function [Re: Spirit] #413678
12/16/12 11:26
12/16/12 11:26
Joined: Sep 2012
Posts: 99
T
TankWolf Offline
Junior Member
TankWolf  Offline
Junior Member
T

Joined: Sep 2012
Posts: 99
I worked out what was wrong and have everything backtesting correctly will report back on Monday when I test the script to ensure my trade management function is fine.

Re: Enter Trade with managing function [Re: TankWolf] #413743
12/17/12 08:50
12/17/12 08:50
Joined: Sep 2012
Posts: 99
T
TankWolf Offline
Junior Member
TankWolf  Offline
Junior Member
T

Joined: Sep 2012
Posts: 99
Well so far doesnt seem to be opening any positions when it should, my backtest works perfectly and the chart results show the right trades at the right places even entering during H1 bars yet in live trading the script is not opening any trades. Suggestions?

Re: Enter Trade with managing function [Re: TankWolf] #413745
12/17/12 10:19
12/17/12 10:19
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
There can be many reasons, dependent on your script and settings. If Zorro does not open a trade, you'll see an error message in the window and can normally determine the reason of the problem.

You can also click on [Result] while life trading - you'll then see a chart with all plots so far. This way you can verify if and when indicators have crossed or a signal has been triggered. Or you can print a messages in your script when a signal occurs, and can then see what's happening.

If you can't find the reason yourself, just post that system here - or send it me by PM when it's secret - and I'll look into it.

Re: Enter Trade with managing function [Re: jcl] #413746
12/17/12 10:28
12/17/12 10:28
Joined: Sep 2012
Posts: 99
T
TankWolf Offline
Junior Member
TankWolf  Offline
Junior Member
T

Joined: Sep 2012
Posts: 99
Not getting any error messages just no trades triggering. The only other thing I thought might be wrong was this line.

Quote:

enterLong(0,Entry,Stop,TakeProfit);


Should I use 1 instead of 0 for lots maybe? If thats not the cause I'll send you a copy so you can take a look.

Last edited by TankWolf; 12/17/12 10:29.
Re: Enter Trade with managing function [Re: TankWolf] #413750
12/17/12 11:04
12/17/12 11:04
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
0 is ok unless you've set also the external Lots variable explicitely to 0.

Your line above does not open trades when Entry was not met within the next bar. Then you'll get no error message of course, as this is no error. So I'd check the Entry value. If you can't find the problem you can anytime send me the script.


Page 2 of 2 1 2

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