Australian (ASX) Stock Market Forum

Recent content by StillShort

  1. S

    Amibroker FAQ

    Check out Howard Bandy's books. One of them you can get free: http://www.introductiontoamibroker.com/book.html
  2. S

    Amibroker FAQ

    Thanks anyway Trash. I really appreciate the amount of effort you've put in.
  3. S

    Amibroker FAQ

    Still no-go unfortunately. The stop loss I don't think is quite right, but regardless, it doesn't actually exit the trade anyway. There is a red triangle with a grey border but, according to the backtester, the trade still only exits at the yearly/100 day low. Trouble is, the more I tweak the...
  4. S

    Amibroker FAQ

    Thanks Trash. I've backtested your code and I can see trades getting stopped out (which is good). Unfortunately what I want is that the stop loss only applies when 'Sellfilter' is true (XAO closes below its 75 MA). Also, when the filter turns off again, the stop loss value resets/goes to...
  5. S

    Amibroker FAQ

    OK, here's the entire code: //'New Yearly Highs' //Setup InitEquity = 100000; MaxPos = 20; Tradesize = 5000; SetOption("InitialEquity", InitEquity); SetOption("MaxOpenPositions", MaxPos); SetPositionSize(5, spsPercentOfEquity); //SetPositionSize(5000, spsValue)...
  6. S

    Amibroker FAQ

    Thanks for your help Trash. I'll have a look to see if those extra '=' are still in there. I remember making that mistake at least once so I may have left one in (conversely, I may have already fixed them up and posted early,bug-riddled code). It seems from what you're saying its more...
  7. S

    Amibroker FAQ

    Thanks Trash, I've tried those lines of code and unfortunately it still didn't work. I actually modelled my stop loss loop on the link you provided. The stop loss plot looks correct and there is even a red arrow over the bar where it should have exited. It just doesn't exit the trade. I've...
  8. S

    Amibroker FAQ

    Hi guys, Fantastic thread. I'm having a problem with a Sell within a FOR loop. I use the FOR loop as a kind of trailing stop. I have the statement 'Sell[i] = 1' within the loop but the trade never closes. Through some debugging, I know that it gets to that part of the code but I'm not sure...
Top