Look at the Equity Curve... Quote from asenft:
Are there easylanguage examples out there that work (give back decent returns consistently)? I'm willing to pay for them (if from a commercial web site) if they are kick ass....
Andy
Quote from abogdan:
Hi Andy:
Here is the code you can try:
inputs: Length( 3), Multiplier(0.5);
Vars: Offset(0);
OFFSET = XAverage((H-L), Length);
Buy next bar at (((C+L+H)/3) - Multiplier*Offset) Limit;
SellShort next bar at (((C+L+H)/3) + Multiplier*Offset) Limit;
If MarketPosition = 1 Then Begin
Sell This Bar On Close;
End;
If MarketPosition = -1 Then Begin
BuyToCover This Bar On Close;
Choose MSFT as your stock, set it to 15 min bars, 100 days (or more) back. Set your commissions to $0.005 per share, do not allow multiple entries and look at the performance!
Enjoy
Quote from asenft:
Are there easylanguage examples out there that work (give back decent returns consistently)? I'm willing to pay for them (if from a commercial web site) if they are kick ass....
Andy
Quote from abogdan:
Hi Andy:
Here is the code you can try:
inputs: Length( 3), Multiplier(0.5);
Vars: Offset(0);
OFFSET = XAverage((H-L), Length);
Buy next bar at (((C+L+H)/3) - Multiplier*Offset) Limit;
SellShort next bar at (((C+L+H)/3) + Multiplier*Offset) Limit;
If MarketPosition = 1 Then Begin
Sell This Bar On Close;
End;
If MarketPosition = -1 Then Begin
BuyToCover This Bar On Close;
Choose MSFT as your stock, set it to 15 min bars, 100 days (or more) back. Set your commissions to $0.005 per share, do not allow multiple entries and look at the performance!
Enjoy
Quote from trend456:
Samaras,
XAverage is the exponential moving average.
The Offset = the exponential moving average of the High minus the Low of the last 3 bars of any time frame.
I think he's taking the pivot point((close + low + high)/3) of each previous bar and adding or subtracting that value with 1/2 of the Offset value.
I wish I'm right.....
Good Luck!
trend