Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
Scripts not found
by juergen_wue. 04/20/24 18:51
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
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (vicknick, howardR, sleakz), 674 guests, and 3 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
Set entry limit with a negative price #472468
04/29/18 11:36
04/29/18 11:36
Joined: Dec 2013
Posts: 568
Fuerth, DE
Sphin Offline OP
User
Sphin  Offline OP
User

Joined: Dec 2013
Posts: 568
Fuerth, DE
Quote:
A positive price or distance constitutes an entry stop, a negative price or distance an entry limit.

Does Zorro really internally calculate further on with the negative value if a limit is set this way?

from TMF:

Code:
if(!TradeIsOpen) {																					// cancel trade immediately if price is over/under limit 
	print(TO_LOG,"nTradePriceOpen: %.5f, Entry: %.5f", TradePriceOpen, Entry);										
	if(TradeIsLong && TradePriceOpen > Entry) 
		return 1;
	[...]
}



from log:

Code:
(EURUSD::L) Long 1@1.21739 Entry limit
TradePriceOpen: 1.21735, Entry: -1.21739
(EURUSD::L) Entry 1.2174 removed (TMF)


This is only true if comparing 1.21735 with -1.21739 but the sense of this operation is of course comparing 1.21735 with 1.21739 and enter the trade.

Re: Set entry limit with a negative price [Re: Sphin] #472533
05/03/18 11:22
05/03/18 11:22
Joined: Jul 2000
Posts: 27,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
Frankfurt
No, all parameters like Stop, Entry, etc. are internally converted to positive price limits that you can read in the TMF.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1