he rules of the 3-day high/low method/strategy
Forums › ProRealTime English forum › ProOrder support › he rules of the 3-day high/low method/strategy
- This topic has 8 replies, 6 voices, and was last updated 1 year ago by ProRealAlgos.
-
-
05/29/2023 at 11:33 PM #215376
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.
05/30/2023 at 2:28 PM #215441Hi,
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…
Larry Conner strategy 3Days High Low12345678910111213141516DefParam CumulateOrders=FalseTimeFrame(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 thenBuy 1 contract at MarketEndIfIf Close>Average[5](Close) thenSell at MarketEndIf05/30/2023 at 9:47 PM #21545807/12/2023 at 10:10 PM #217585The 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,
1234567891011121314151617181920212223DefParam CumulateOrders=FalseTimeFrame(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 thenBuy 1 contract at MarketSET STOP %LOSS 1.4EndIfIf Close>Average[5](Close) and (dlow(0) < dlow(1) xor dhigh(0) < dhigh(1)) thenSell at MarketEndIfif dlow(0) > dlow(1) and dhigh(0) < dhigh(1) thensell at marketendif07/13/2023 at 2:57 PM #21760307/13/2023 at 3:29 PM #217605It 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).
1 user thanked author for this post.
07/13/2023 at 4:06 PM #217609As 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.
07/13/2023 at 5:25 PM #21761807/14/2023 at 9:53 PM #217671One 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.12noEntryBeforeTime = 080000noEntryAfterTime = 171500 -
AuthorPosts
Find exclusive trading pro-tools on