Forum

Backtesting irregularities

Hi All, I am running a simple EA that executes trades whenever the close price of the current bar is near a certain level. So for example, if the price is 1.5000, and I have a 4 point boundary, the model will trade when the price is between 1.4996 and 1.5004. I m running the EA using open prices

Creating a simple Binary Indicator

Hi all, I am trying to create a simple binary indicator, that returns value 1 when an argument is true, and 0 when the argument is false. For example: #property indicator_separate_window int start() { double SCORE; double MCCI= iCCI ( 0 , 0 , 14 , PRICE_TYPICAL , 0 ); double MCCI2= iCCI ( 0 , 0 , 14

Different Indicator Data in EA versus main Chart

Hi All, I am a new Metatrader user who has some experience of coding, and am having a problem I have a custom indicator that calculates the daily pivot points (R3, R2, R1, PP, S1, S2, S3) for the currency pair I am looking at. I am currently looking at 5 minute data. I have manually verified the