Joao Paulo Freitas Do Espirito Santo / Publications
Forum
Piece of code that doesn't open 2 positions on the same price range
Hi all, I'm coding an EA that locks into a custom indicator to give me signals and i want to include a if function which says to not to open anymore positions if the price of the new positions is equal or inside of a price range of another position. For example EUR/USD I have a sell order at: 1.1000
My EA only opens buy positions
Hi all, I'm creating an EA which call's one of my custom indicators and i want to open positions when the indicator gives me arrow signals. The problem is my EA is opening buy positions on both arrow's. I'm going to leave my code here with the hope that someone more experience could help me! Many