Forum

Making a Order send adjust the order size so that the stop loss becomes 1% of my account?

Hello, I am new to the coding world and require a bit of help from the professionals. I want to make my stop loss 1% of my account but have it at a fixed point (i.e. 3xATR) therefore, if Meta trader could adjust my order size so that the stoploss becomes 1% of my account. how would I code this into

How to make EA only open one position per Currency pair.

Hi all, I am having difficulties with my code. I would like it to open one order per currency pair but currently it only opens one order for the whole platform, can anyone guide me as to how i could adjust my code to open one trade per currency pair. this is what i have currently got going, if