Amibroker questions

Discussion in 'Programming' started by j2ee, Apr 12, 2013.

  1. j2ee


    I am creating my amibroker formula and don't know how to code these:

    1. When the price is at $10, I buy with 10% of my capital
    then once the price moves up 5%, I use another 10% to buy.

    2. When last trading is a winning one, this time I don't execute but I need to record down what would happen if I buy in this time so next time I can check this virtual trading is not a winning one so I can buy.