Originally Posted by ;
This script will find the spread for you, place an entrance one pip over the top of the last bar plus the spread and a stoploss one pip below the low of the final bare, it will also assess the risk for you based on where the Entrystop is set and where the stoploss is put then set a lot size based on a proportion.
It works on IBFX mini accounts.
Maybe you are able to code from it exactly what you need. I had been a lot of work for me however I heard alot MQL.
Best regards
Dale