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:
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
#############################
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