Gamestudio Links
Zorro Links
Newest Posts
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), 1,643 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 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: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
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 | 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