Hi to everyone,
I am completing my first EA on a simple RSI strat. My problem however is that when testing i want to be able to limit the number of open positions to a maximum of 1 (eg 1 lot) at a time. This is obviously to avoid for example the RSI dipping bellow a certain level and triggering 1 lot then without being stopped out, dipping back below that level again and opening another. My strat comes across a lot of this.
I have spent a lot of time researching and starting from scratch and I am determined not to stop now. Can someone please point me in the write direction? Thanks
ps. All I can find on the subject is this : total=OrdersTotal(); if (total<1)
I am completing my first EA on a simple RSI strat. My problem however is that when testing i want to be able to limit the number of open positions to a maximum of 1 (eg 1 lot) at a time. This is obviously to avoid for example the RSI dipping bellow a certain level and triggering 1 lot then without being stopped out, dipping back below that level again and opening another. My strat comes across a lot of this.
I have spent a lot of time researching and starting from scratch and I am determined not to stop now. Can someone please point me in the write direction? Thanks
ps. All I can find on the subject is this : total=OrdersTotal(); if (total<1)