paul selvan / Profile
paul selvan
Added topic OrderCalcMargin
hello, The instruction OrderCalcMargin () works perfectly when written in script But when used in an indicator we got Error n° 4014 ERR_FUNCTION_NOT_ALLOWED Is this instruction works on script but not in indicator regards
paul selvan
Added topic symbol retail leverage
Hello , I'm using [broker name redacted] mt5 plateform if account leverage is given by instruction : AccountInfoInteger ( ACCOUNT_LEVERAGE ) But each symbol has sometimes different retail leverage value. e.g. My plateform leverage is 30
paul selvan
Added topic how to extract datas from Symbol specification window and import them in an indicator
Hello, I'm trading on MT5. I'm looking for ideas to write an indicator(or EA). In fact each symbol got specifications From there I want to extract these datas : 1) value of "½ Minimal volume" 2) value of "eur/lot" from "Margin rates : ½ Market
paul selvan
Added topic symbol exchange between two templates
Hello There are 2 templates A and B in my mt5 How to transfer or copy symbol (in which i have drawn technical levels) from A to B template
paul selvan
Added topic how to find leverage and minimum lot size for each symbol
Hello, Each symbol need different minimum lot or leverage. These two values are used to calculate margin = lot_size x contract_size / leverage. For example : CFD sp500 has minimum_lot = 0.1 and leverage =20 CFD ibex35 , min_lot = 0.1 and leverage =
paul selvan
Added topic Error when call 2 times CopyBuffer()
Hello , This custom indicator should draw 7 & 20 period SMA #property indicator_chart_window #property indicator_buffers 2 #property indicator_plots 2 #property indicator_label1 "iMA1" #property indicator_type1
paul selvan
Added topic in which chart runs an EA
Hello I got many charts opened(USDJPY,GBPUSD,...) at the same time in my mt4 plateforme In one of this chart ,runs an EA Visually we can see in which chart it runs But is it possible programly to know the chart ID number in which the EA runs
paul selvan
Added topic dialog class and a subwindow
hello, "hIndicator_dialog_class_only.mq4" is an indicator which creates a dialog class #property indicator_chart_window //+------------------------------------------------------------------+ #include <Controls\Dialog.mqh> class
paul selvan
Added topic vertical lines
hi these codes draw verticale lines (where datetime t and string p are known) ObjectCreate ( 0 , p, OBJ_VLINE , 0 , t, 0 ); ObjectSetInteger ( 0 , p, OBJPROP_COLOR , clrYellow ); ObjectSetInteger ( 0 , p, OBJPROP_STYLE , STYLE_SOLID );
paul selvan
Added topic multicurrency datas with OnChartEvent() and EventChartCustom()
Hello, There are MT5 programs where OnChartEvent() and EventChartCustom() are used to get multicurrency datas The program is explained in this article Is it possible to adapt it for MT4
paul selvan
Added topic chart right side time
hello programers We know how to get the time of first visible bar ==> Time[0] But how to get in easy way the chart right border time (in datetime T)
paul selvan
Added topic muti chart
hello traders, Mql4 function IndicatorCounted() returns a value for the current chart ....how to get the amount of bars not changed after the indicator had been launched last on a chart differnt from the current one
paul selvan
Added topic symbols in extern variable
hello, We know we can get as extern variable timeframes enumeration by t : extern ENUM_TIMEFRAMES tf; Is it also possible to get as extern variable all symbols contained in market watch ? thanks
paul selvan
Added topic indicator index
Hello , 2 indicators are initialized in main chart by these set of instruction. double
paul selvan
Added topic indice of TimeHour()
Hello I meet problem with indice of TimeHour() When the indice is a constant like : int t = TimeHour ( Time [ 2 ]); Comment (t); TimeHour of indice 2 is properly displayed
paul selvan
Added topic how to add new fibo retracement level
Hello, i've correctly created a fibo retracement tool with these instructions : #include <ChartObjects\ChartObjectsFibo.mqh> CChartObjectFibo myFibo; //.... int OnCalculate ( //.... myFibo.Create( 0 , "myFibo" , 0 ,t1, p1,t2, p2); //.... } Now
paul selvan
Added topic price overlay
I want to share a tips which displays price overlay of two instruments. ----------------------------------------------------------------------------------------- Let's say we want to study USDCAD & WTI correlations. Here is double_chart.mq4
paul selvan
Added topic MarketInfo(NULL, MODE_TICKVALUE)
hello double tickValue = MarketInfo ( NULL , MODE_TICKVALUE ); EA strategy tester gives tickValue = 1 , instead of tickvalue in the deposit currecy So this instruction wont work while in strategy tester ? Thnaks
Share on social networks · 1
8
paul selvan
Added topic OrderProfit
Hello, A trade must be closed if its losses reache -25$ The probable codes are : for ( int pos = 0 ; pos < OrdersTotal (); pos++){ if (( OrderSelect (pos, SELECT_BY_POS ) == TRUE ) && (
paul selvan
Added topic OrderSelect()
hello, ticket = OrderSelect(pos,SELECT_BY_POS,MODE_TRADES) I know if among open or pending orders at position pos if there is an order then ticket = TRUE . But in which case ticket = FALSE
: