Hi, can someone help me to create this famous Larry Conjnor strategy? thank’s in advance
The rules of the 3-day high/low method/strategy
the strategy is like this:
- Today’s close must be higher than the 200-day moving average.
- Today’s close must be lower than the 5-day moving average.
- Two days ago both the high and low were lower than the day before.
- Yesterday the high and low were lower than the day before.
- Today the high and low are lower than yesterday.
- If conditions 1-5 are true, then buy today at the close.
- Exit at the close when the close is above the 5-day moving average.
JSParticipant
Senior
Hi,
Hereby the Larry Conner strategy “3 Day High Low”…
Report figures are nice except for the DrawDown…
You can’t buy or sell on the “Close”, it is always on the “Open” of the next bar…
DefParam CumulateOrders=False
TimeFrame(1 Day, UpdateOnClose)
C1=Close>Average[200](Close)
C2=Close<Average[5](Close)
C3A=High[2]<High[3]
C3B=Low[2]<Low[3]
C4A=High[1]<High[2]
C4B=Low[1]<Low[2]
C5A=High<High[1]
C5B=Low<Low[1]
If C1 and C2 and C3A and C3B and C4A and C4B and C5A and C5B then
Buy 1 contract at Market
EndIf
If Close>Average[5](Close) then
Sell at Market
EndIf
thank’s JS.
MAybe is it possible to buy at close, for example at 21.30 last half an hour? so, strategy works in 30 min timeframe and to use Dhigh and Dlow in strategy?
The Larry Connor 3-day high/low method/strategy for DAX.
I added a stoploss of 1.4% and code to exit trade if the low of today is bigger than the low of yesterday if the high of today is lower than the high of yesterday.
I also added another entry condition to only enter the trade if low of today is smaller than yesterday XOR the high of today is lower than the high of yesterday.
Runs on the daily timeframe on DAX40. Backtest for 200k units attached,
DefParam CumulateOrders=False
TimeFrame(1 Day, UpdateOnClose)
C1=Close>Average[200](Close)
C2=Close<Average[5](Close)
C3A=High[2]<High[3]
C3B=Low[2]<Low[3]
C4A=High[1]<High[2]
C4B=Low[1]<Low[2]
C5A=High<High[1]
C5B=Low<Low[1]
If C1 and C2 and C3A and C3B and C4A and C4B and C5A and C5B then
Buy 1 contract at Market
SET STOP %LOSS 1.4
EndIf
If Close>Average[5](Close) and (dlow(0) < dlow(1) xor dhigh(0) < dhigh(1)) then
Sell at Market
EndIf
if dlow(0) > dlow(1) and dhigh(0) < dhigh(1) then
sell at market
endif
RazzParticipant
Master
Hello when I want to insert the code I get a lot of errors? What is the cause?
It looks like you are programming this in an Indicator, while the commands you use (from ProRealAlgos) are meant to be for a Backtesting & Autotrading system (see mouse arrow below).
As from the attached pic, lick the COPY icon to automatically select the code, then press Ctrl+C to copy the text into the clipboard to later paste it in the platform or a text file of your choice.
RazzParticipant
Master
Hello PeterST Thanks for your help I accidentally wanted to actually create it as an indicator, how stupid of me.
One of our customers just contacted us, apparently this strategy works quite good on DAX on the 1-minute timeframe with only some minor adjustments.
Add these two extra parameters for the code, remove the timeframe-row and you will get a backtest looking like the attached images.
noEntryBeforeTime = 080000
noEntryAfterTime = 171500