Recent content by mdjgd4

  1. M

    Amibroker AFL Coding Help

    Okay thank you for the trade delay fix! Modified the code to include this and it works great now: Length1 = Optimize ("Length1", 10, 1, 20, 1); Length2 = Optimize("Length2", 10, 1, 20, 1); Pivot1 = HHV(Close,Length1); Pivot2 = LLV(Close,Length2); Buy = Close > Ref( Pivot1, -1 )...
  2. M

    Amibroker AFL Coding Help

    Thank you so much for all of the help on this! Using the info provided I created the formula below and have not been able to get it to work. Any ideas? Thank you in advance!!! Length1 = Optimize ("Length1", 10, 1, 20, 1); Length2 = Optimize("Length2", 10, 1, 20, 1); Pivot1 =...
  3. M

    Amibroker AFL Coding Help

    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...
Back
Top