Forum

Opening Sell Trades

I am coding an EA for trading SAR. My bear positions, based on the SAR, never action. All bull positions work fine. Using counters for each function I have confirmed that every function works as required. values. in the below code simply refers to a pre-made structure. void OnTick () {

IF Statements do not work with more than one expression

I have an issue with some IF statements which are shown in my code below (I have taken out a lot of code that does not relate to the topic). All code highlighted in purple works perfectly, both lastSignal & thisSignal strings are updated when required. My problem is after my // Set SAR swap