Now is :
if LongEntrySignal
{
// Action #1
Open Long order at (HighDaily(Main chart)[10] - (0.50 * SmallestRange(Main chart, 3)[4])) Stop;
Order valid for 4 bars;
Stop Loss = 140.0 pips;
Trailing Stop = 90.0 pips;
Exit After 6 bars;
}
//--------------------------------------------------------------------
// Trading rule: Short entry (On Bar Open)
//--------------------------------------------------------------------
if (ShortEntrySignal
and Not LongEntrySignal)
{
// Action #1
Open Short order at (HighDaily(Main chart)[10] + (0.5 * SmallestRange(Main chart, 3)[4])) Stop;
Order valid for 4 bars;
Stop Loss = 140 pips;
Trailing Stop = 90 pips;
Exit After 6 bars;
HIGHEST(HIGH) should also be inverted to LOWEST(LOW)!
Currently, the calculation price "High" is not mirrored to "Low",
so you get LOWEST(HIGH) instead...