Forum

issue with code

Hey so I have coded an expert advisor but I am having an issue with initiating a part of the code correctly #include <Trade\PositionInfo.mqh> #include <Trade\Trade.mqh> #include <Trade\SymbolInfo.mqh> #include <Trade\AccountInfo.mqh> // Spread out the orders of open trades by counting down the

Help with code

#include <Trade\PositionInfo.mqh> #include <Trade\Trade.mqh> #include <Trade\SymbolInfo.mqh> #include <Trade\AccountInfo.mqh> void OnTick () { //--Defining Variables for Information for Comment double myAccountBalance = AccountInfoDouble ( ACCOUNT_BALANCE ); double myAccountProfit =

SL code line not working help Mql5

why is this code not working #include <Trade\Trade.mqh> void OnTick () { //--Defining Variables for Information for Comment double myAccountBalance = AccountInfoDouble ( ACCOUNT_BALANCE ); double myAccountProfit = AccountInfoDouble ( ACCOUNT_PROFIT ); double myAccountEquity =

Learning to Automate Trade

Hello, I am just starting to experiment in mql5 and I am still learning but I get an error in this code in price which doesn't make sense since it should just buy the symbol at whatever price as long as there is not an open order. If you could help me understand what is going on that would help me a