Would really appreciate any guidance on a new strategy I'm wanting to code in Amibroker. The strategy is very simple and involves the following:
Buy/Cover = close of current bar higher than closing high n bars ago
Sell/Short = close of current bar lower than closing low n bars ago
The idea would be to optimize variable n. The variable n in sense would be a pivot point and if the price of the traded instrument crosses above this pivot point it triggers a trade.
The concept is somewhat similar to the Turtle Traders strategy (e.g. if closing price exceeds the highest closing in 20 days then buy). In this example n would equal 20 days or 20 bars dependent on the time frame used.
Any help on this would be greatly appreciated. Thank you in advance!!!
Buy/Cover = close of current bar higher than closing high n bars ago
Sell/Short = close of current bar lower than closing low n bars ago
The idea would be to optimize variable n. The variable n in sense would be a pivot point and if the price of the traded instrument crosses above this pivot point it triggers a trade.
The concept is somewhat similar to the Turtle Traders strategy (e.g. if closing price exceeds the highest closing in 20 days then buy). In this example n would equal 20 days or 20 bars dependent on the time frame used.
Any help on this would be greatly appreciated. Thank you in advance!!!