Forum

Why is there such a drastic performance difference between "every tick" vs "open prices only"?

I have a few bots that only go up with " open prices only " but only go down with "every tick", and I do not understand why. I would like the performance to be similar. I try to have it run on candles like so. bool IsNewCandle() { static datetime lastCandleTime; if (Time[ 0 ] == lastCandleTime)

Guidance on how to create Support & Resistance zones?

I am trying to create those zones people use when they look at a chart and pick some good lines where price seems to react as decision points for price action strategies. I can do it intuitively on a chart as well, but am having trouble defining this problem clearly and translating it to good code

Confused about OnTick vs OnNewCandle best practices

I currently coded an EA all in the OnTick function. Similar to this template: void OnTick() { bool longSignal = check MACD cross up; bool shortSignal = check MACD cross down; if (OrdersTotal() > 0) { if (shortSignal) OrderClose(Buy orders); if (longSignal) OrderClose(Sell orders); } if

What shifts to use for coding crossovers?

Should I be using shift 0 and 1 or 1 and 2