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
3 registered members (AbrahamR, AndrewAMD, ozgur), 763 guests, and 7 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 3 of 3 1 2 3
Re: Need help with script [Re: jcl] #433436
11/29/13 16:01
11/29/13 16:01
Joined: Jul 2013
Posts: 110
B
bfleming Offline OP
Member
bfleming  Offline OP
Member
B

Joined: Jul 2013
Posts: 110
It's not a matter of believing the formula. I completely understand the formula. It's a matter of Zorro having determined the risk incorrectly at least on those two trades , and now trying to figure out why, especially if it happens again. Other than the things we already looked at, is there anything else that could possibly result in Zorro incorrectly determining the risk? That way I can investigate and look into that should it happen again.

Re: Need help with script [Re: bfleming] #433437
11/29/13 16:12
11/29/13 16:12
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
You've learned with the test script how to calculate the risk and print all parameters leading to it. Why don't you do this with your other script also? If you understood the formula in the test script, you just need to copy the print statement and apply exactly the same formula in your trading script.

Your own risk calculation was wrong, by factor 10 and more, because you were using a wrong formula and a wrong lot size - I told you that several times.

Re: Need help with script [Re: jcl] #433438
11/29/13 16:28
11/29/13 16:28
Joined: Jul 2013
Posts: 110
B
bfleming Offline OP
Member
bfleming  Offline OP
Member
B

Joined: Jul 2013
Posts: 110
Yeah, I'm already doing that with the test script.

Regarding my risk calculation: 1 micro lot (i.e. 0,.01 standard lot) opened with the broker on AUDUSD is $0.10 per pip. When the ATR is 34.5, then 10*ATR is 345 pips, which at $0.10 per pip comes to $34.50 of risk.

And in fact the strategy is trading the same micro lot size that it used in the simulation, so the strategy is trading the correct lot size.

But as I've said many times, this in no way explains the huge discrepancy in the USDCHF trade, which was a factor of 19.5.

Re: Need help with script [Re: bfleming] #433440
11/29/13 16:50
11/29/13 16:50
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Just do exactly the same as you did with the test script.

Run your trade script in "Test" mode. Check the logfile and compare the displayed risk with the risk and the parameters from the formula. In the next step trade it on your demo account. Again compare the displayed risk with the risk and the parameters from the formula. You can then see all discrepancies. Your calculation above looks ok to me, but I cannot verify your parameters from here. If you get result A and the computer gets result B and you are sure that you're using the right formula, then obviously one of the parameters must be different.

Page 3 of 3 1 2 3

Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1