mrwick / Publications
Forum
How to Calculate Profit/Loss percentage change
Hello, does anyone have a formula to calculate the change percentage as shown below? thanks
Help with WebRequest POST generating invalid JSON body
Hi I'm trying to post the below to my express js endpoint I have a function below but it's posting an invalid JSON body to my express js. void PostOrderStatusAPI() { if ( MQLInfoInteger ( MQL_TESTER )) { } else { // JSON text to send string strJsonText = "{\"key\": \"value\"}" ; //
Hot to get P/L percentage in MQL5?
Hot to get P/L percentage in MQL5 from EA? I can't seem to find the function for it. Please see screenshot. Thanks
EA multiple chart other pair interference
Hi, What is the best method to stop interference when running EA on multiple pair? I'm getting wrong indicator from the wrong pair on my chart. Would something like below do the trick by using _Symbol == _Symbol ?? if (BuySignal>=NumberOfSignal && _Symbol == _Symbol ) {
How to open one position per pair
Hi, I have found a lot of outdated codes on the form in regard to this topic. What is the quickest way to open 1 positon per pair? I'm using the code below which one open 1 pair and 1 trade but I wish to open 1 trade for each pair I select. Thanks if ((( OrdersTotal ()== 0 ) && ( PositionsTotal ()==
Estimate ATR low and high automatically
Hi, How do I automatically estimate the ATR Low and High
How to automatically calculate ATR stop loss
Hi, If my ATR= 0.00087 and price: 0.69111 and I want 1.5% stop loss . How do I calculate this with EA? Is the following correct? Convert ATR to whole number from 0.00087 to 87 * 1.5 = 130 pips. Am I correct? if so how do I convert it to code. Especially the digit conversion from 0.00087 to 87, how