Forum

straregy tester opens multiple positions

hi, Im writing a simple EA. this is my code: //+------------------------------------------------------------------+ //| ProjectName | //| Copyright 2020, CompanyName | //|

question about CTrade class

What is the difference between Buy() method and PositionOpen() method in CTrade class? if they are the same, whats the point of having two different method that basically do the same thing in CTrade Class

source code of MT5 signal modules

hi, I accidentally manipulated source of SignalMA module without taking a backup (SignalMA module resides in Include --> Expert --> Signal --> SignalMA.mqh file ) can anybody do me a favor and post here the source code of this file

question about CiOpen class

hi I wrote this code: #include <Indicators\TimeSeries.mqh> void OnStart () { CiOpen op; op.Create( _Symbol , PERIOD_CURRENT ); op.Refresh(); double value = op.GetData( 0 ); value = NormalizeDouble (value, 5 ); Print ( DoubleToString (value, 5 )); Print (

string size in mql5

Hi how many characters a string can have in mql5

difference of these two

hi could someone explain the diff between these two? according to this link , both of these return maximum volume long maximum = ( long )SymbolInfoInteger ( _Symbol , SYMBOL_VOLUMEHIGH ); double maximum = SymbolInfoDouble ( _Symbol , SYMBOL_VOLUMEHIGH_REAL );

question about symbol expiration type

hello Im a liitle bit confused about this. I donkt know how to explain it. Im trying to get information about Symbol. here is my script. void OnStart () { int expirationMode = SymbolInfoInteger ( _Symbol , SYMBOL_EXPIRATION_MODE ); Print ( "expirationMode is: " + ( string )expirationMode ); }

gradient background for charts in Metatrader5

hi I need a gradient background for my chart in Meta trader 5. It seems that it is not possible from chart settings. can anybody help me please