Forum

Sum of all Open Stop Losses (in USD), expressed as a % of Total Account value, where the base account is in USD

I have developed the below code to try and sum all open stop losses, across multiple currencies in the portfolio and then express as a % of the Total Account Value (in USD base currency ). I don't get an output that makes sense - can anyone help improve the code to give an accurate and stable

Demo EA Signals - Active Subscription Period

Does anyone know how long a demo EA signal remains active and available for subscription? It seems to me that after about 3 weeks following publishing, it is no longer possible to subscribe to demo signals, even if you have a direct link to the signal. Has anyone got more detailed information on

MT4 Demo signal

I'm trying to test my demo signal before I upgrade it to a real signal. The signal is posted on MQL5.com, but when I try to subscribe to it with a different demo account I get the message in MT4 "the signal is temporarily disabled for new subscriptions". How do I fix this

Trying to ensure only 1 open trade on my EA

I have the following code to prevent a new order from being generated when one is already placed. Any idea why additional trades still follow... int CheckForOpen() { bool Result; int t,Pos,Error; int Total= OrdersTotal (); int OrdersTotalMagicOpen= 0 ; if (Total> 0 )