Recent content by marktcoleman

  1. M

    TS Stochastic Crossover Strategy Code Help?

    // Declare two boolean variables: vars: bool touched10(false), bool touched90(false); If slowk < = 10 then touched10 = true; If slowk > = 90 then touched90 = true; if slowk crosses under 80 and touched90 = true then begin sell..... touched90 = false; end; if slowk crosses...
  2. M

    Strategy Not Working On Chart

    Found the Problem On the Format Properties for All tab I had set the 'Maximum Number of bars Study Will Reference' to 600 (the same as the bars in the chart). I changed it to five (since I my code was only looking back 5 candles) and voila - it worked ! Hope this helps someone else struggling...
  3. M

    Strategy Not Working On Chart

    I have written a very simple EL strategy and inserted it onto a chart. The chart goes back 600 bars and has a paintbar applied that uses the same logic as the strategy. No orders are taken although most charts have 4-8 paintbars with the condition met. I inserted some print statements in the...
Top