Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 04/05/26 10:06
TMFs on options in live trading
by Spirit. 03/26/26 19:52
TDAmeritrade plugin with new Schwab accountt?
by AndrewAMD. 03/24/26 17:11
Black Book, 4th edition
by jcl. 03/17/26 09:28
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (vince, TipmyPip), 4,609 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
ondrej, mredit, vestriaa, Lukudo, mldenoiser
19205 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Entry... TradeEntryLimit #458411
03/08/16 17:02
03/08/16 17:02
Joined: Dec 2002
Posts: 1,999
Switzerland Zürich
JeyKey II Offline OP
Serious User
JeyKey II  Offline OP
Serious User

Joined: Dec 2002
Posts: 1,999
Switzerland Zürich
doesent work as described in the Manual:
"Enter the trade only when the price reaches a certain value at the next bar"

A simple Example:
Code:
function run()
{
	StartDate = 2013;
	EndDate = 2014;
	set(PLOTNOW);
	PlotBars = 480; 					
		
	BarPeriod = 60;
//-----------------------
	Entry = 1.052;   // Entry Price
//-----------------------
	Stop = TakeProfit = 2*ATR(100);
	Lots = 1;

	if(NumOpenTotal == 0)
	{
		enterShort();
		plot("S",priceClose()-10*PIP,MAIN+TRIANGLE4,RED); // Plot "Pfeil ab"
	}
}


Zorro open Trades not only at Price = 1.052


Example2: Entry modification with TMF
Code:
#############################
function Order();

function run()
{
	StartDate = 2013;
	EndDate = 2014;
	set(PLOTNOW);
	PlotBars = 480; 					
		
	BarPeriod = 60;
//-----------------------
//	Entry = 1.052;   // Entry Price
//-----------------------
	Stop = TakeProfit = 2*ATR(100);
	Lots = 1;

	if(NumOpenTotal == 0)
	{
		enterShort(Order);
		plot("S",priceClose()-10*PIP,MAIN+TRIANGLE4,RED); // Plot "Pfeil ab"
	}
}

int Order()
{
	if (TradeIsShort)
	{
		TradeEntryLimit = 1.060;
	}
	return 0;	
}


TradeEntyLinit has no effect


[Jeder ist sich selbst am Nächsten]
Re: Entry... TradeEntryLimit [Re: JeyKey II] #458414
03/08/16 17:08
03/08/16 17:08
Joined: Jul 2000
Posts: 28,090
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,090
Frankfurt
This is no entry limit, it is an entry stop. You can easily check if the script does what you want: first print the price at entering the trade, then the opening price in the "TradeIsEntry" event. The first price must be above the entry stop and the second below or in the proximity of the entry stop.



Moderated by  Petra 

Gamestudio download | 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