Gamestudio Links
Zorro Links
Newest Posts
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
Data from CSV not parsed correctly
by jcl. 04/20/24 08:32
Zorro FIX plugin - Experimental
by jcl. 04/20/24 08:30
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (7th_zorro, Aku_Aku, 1 invisible), 604 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Takeprofit and Stoploss #473241
06/23/18 08:54
06/23/18 08:54
Joined: Apr 2018
Posts: 37
S
sdelatorre Offline OP
Newbie
sdelatorre  Offline OP
Newbie
S

Joined: Apr 2018
Posts: 37
Hi,

I'm developing a system which it builds an string( asset) and after compare this string with all assets from AssetList. It's easy. I do it with a loop

while (compare=loop(assets))
found(compare)


The problem is when I found the asset --> Select the asset , Set by
example:

asset("EUR/USD")
TakeProfit=15*PIP
StopLoss=30*PIP
EnterLong()

but I look that is not correct SL and TP, when the trade is opened ok but it closes with TP and SL different that I set.

I'm tested Zorro and MT4. When the trade is open in MT4 is 45 PIP of stop loss and trades are closed with takeprofit +-9

Why the reason ??


Thanks in advance.

Re: Takeprofit and Stoploss [Re: sdelatorre] #473245
06/23/18 17:26
06/23/18 17:26
Joined: Feb 2015
Posts: 652
Milano, Italy
M
MatPed Offline
User
MatPed  Offline
User
M

Joined: Feb 2015
Posts: 652
Milano, Italy
StopLoss = 30*PIP; Are u sure?
Have a look at StopFactor for the difference in PIP number.
For such a tiny take-profit I guess that spread is your enemy...

Re: Takeprofit and Stoploss [Re: MatPed] #473252
06/24/18 16:54
06/24/18 16:54
Joined: Apr 2018
Posts: 37
S
sdelatorre Offline OP
Newbie
sdelatorre  Offline OP
Newbie
S

Joined: Apr 2018
Posts: 37

Hello MatPed, then I have to set the StopFactor=1, haven't it? I hadn't set any way the Stopfactor.

And I guess that I have to set TakeProfit=15*PIP+spread

Re: Takeprofit and Stoploss [Re: sdelatorre] #473260
06/25/18 07:08
06/25/18 07:08
Joined: Feb 2015
Posts: 652
Milano, Italy
M
MatPed Offline
User
MatPed  Offline
User
M

Joined: Feb 2015
Posts: 652
Milano, Italy
StopFactor is a nice feature of Zorro, the default value is listed in the manual.
You can not forecast the spread. I guess you have to deal with the fact that you will never have the exact number of pips you are hunting: while you send your order the price and the spread is moving.

my 2 cents

Re: Takeprofit and Stoploss [Re: MatPed] #473281
06/25/18 16:35
06/25/18 16:35
Joined: Apr 2018
Posts: 37
S
sdelatorre Offline OP
Newbie
sdelatorre  Offline OP
Newbie
S

Joined: Apr 2018
Posts: 37
Thanks again

now with StopFactor correct in MT4 all trades have the SL correct but all trades opened are closed in the same bar without TP of course.

I use flag TICKS.

When I push TRADE Zorro tells me that trades are closed for Stop.

Upload files

Attached Files captura_MT4.PNGZORRO_CAPTURA.PNG
Last edited by sdelatorre; 06/26/18 08:15.

Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1