|
Chuck LeBeau's Chelier Exit
You need to define your entry system . pip loss in code
Chelier Long Exit
LongEntry:= {this your entry system eg. Cross(CLOSE Mov(C20E))};
MoneyMgmtStop:= {this is your imum loss in points};
{DEFINE ENTRY PRICE WITH EXIT BEING -ENTRY PRICE NO TRADE BEING 0}
EntryPrice:= If(PREV <= 0
{Trade entered today?}
If(LongEntry CLOSE 0)
{Trade entered before today. Stopped today?}
If(LOW <= PREV - MoneyMgmtStop -PREV
If(LOW <= HighestSince(1PREV=0 HIGH) - 3 * ATR(10) -PREV
If(LOW <= HighestSince(1PREV=0 CLOSE) - 2.5 * ATR(10) -PREV
PREV))));
{EXIT IF ENTRY PRICE < 0 (MEANING EXIT)}
EntryPrice < 0
Chelier Short Exit
ShortEntry:= {this your entry system eg. Cross(Mov(C20E) CLOSE)};
MoneyMgmtStop:= {this is your imum loss in points};
{DEFINE ENTRY PRICE WITH EXIT BEING -ENTRY PRICE NO TRADE BEING 0}
EntryPrice:= If(PREV <= 0
{Trade entered today?}
If(ShortEntry CLOSE 0)
{Trade entered before today. Stopped today?}
If(HIGH >= PREV + MoneyMgmtStop -PREV
If(HIGH >= LowestSince(1PREV=0 LOW) + 3 * ATR(10) -PREV
If(HIGH >= LowestSince(1PREV=0 CLOSE) + 2.5 * ATR(10) -PREV
PREV))));
{EXIT IF ENTRY PRICE < 0 (MEANING EXIT)}
EntryPrice < 0
__________________
Hani
As we sail through life . . .
. . . We face storms deep waters
We have to accept pass'em . . .
. . . Caz.calm seas never make skillful sailors
|