Cardano Trading Strategy (Amibroker code)
The original article can be found here.
Trading rules in plain English:
- If the close is higher than the close 25 days ago, go long at the close.
- If the close is lower than the close 25 days ago, sell at the close.
Amibroker code:
Buy = C > Ref(C,-25);
buyPrice = Close;
Sell = C < Ref(C,-25);
sellPrice = C ;
