https://www.mql5.com/en/code/14085 I used this code as a base and modified it to close the last trade of either OP_TYPE before opening the next. However, after a while the trade copier stops placing trades altogether. My modified source code is
I've been looking all over the forum and codebase for a local trade copier that closes the last trade before opening the next but only of the current type (buy or sell). Can someone point me to one if you are familiar or share code? Thank you
Hi, I'm looking for a remote trade copier that connects two metatrader accounts without having to reroute to an external server. I searched all of the options in the market place and all of the remote trade copiers connect to their shady external
I am trying to implement https://www.mql5.com/en/code/16308 So in my first function I do this, void firstfunction{ int switch_action= 99 ; if (compArray[ 0 ]== "buy" ) switch_action= 1 ;
Hi, I have a variable called switch_action in my OnTick function , you can see below how it is calculated. void OnTick () { int switch_action; int ticket=- 1 ; double price; double
This is the code I have so far but for the sharpe ratio. int OnInit () { if ( IsTesting () || IsOptimization ()) GlobalVariableSet ( "InitialBalance" , AccountBalance ()); return ( 0 ); } void OnDeinit ( const int reason) {