Forum

please help fix this label function

my function call line in start() is LN(1,"+ 100", H, White); my function is void LN(double n, string nm, double val, color CL) { string NN = nm + DoubleToStr(n,0); ObjectDelete(NN); ObjectCreate(0,NN,OBJ_HLINE,0,0,val); ObjectSet(NN,OBJPROP_COLOR,CL); string nmL = NN + "_Label";

Code Error Kindly Guide

will this code work to get the proper drawdown and target 2 times the drawdown in profits int tm, z; double lw, dd; for (int i=0;i<OrdersTotal();i++) { OrderSelect(i,SELECT_BY_POS,MODE_TRADES); tm = (TimeCurrent()-OrderOpenTime())/60; if (OrderType()==OP_BUY) { lw =

Code Error Kindly Guide

Kindly Guide on what could be wrong with the following code snipet, ------------------------------ //+------------------------------------------------------------------+ //| spread.mq4 | //| Copyright © 2009, MetaQuotes Software Corp. | //| http://www.metaquotes.net |

Low of an Open Trade

from this partial code i am able to collect number of 1 min candles since trade open but am unable to find the lowest low achieved or the drawdown of the open trade guide --------------------- int tm, z; double lw[]; for (int i=0;i<OrdersTotal();i++) { OrderSelect(i,SELECT_BY_POS,MODE_TRADES); tm =

Historial Spread

How do I chart the historical spread on the chart, so that I can get it as a trendline and know at which point the spread increased. And this will also help me analyze the best trading conditions

what am i doing wrong

in the following code i am trying to draw an arrow on the cci 8 change but i think i am doing something wrong, but can't figure it out help //+------------------------------------------------------------------+ //| custom_cci.mq4 | //| Copyright © 2009, MetaQuotes Software Corp. | //|

Angle of 2 candles

How do I get the angle of 2 candles as in price1= iClose (Symbol(),0,2); price2=iClose(Symbol(),0,1); Now, I need tofind the angle of the line made by the 2 prices. How do I achieve this

Integration of mbtrading api with MT4 platform

mbtrading,com/fx gives 1/10 pip spread on all pairs, hence i wish to trade with them. but at the same time i love the mt4 platform because of the ease of making the charts and indicators to choose my needs. how do we integrate the two togather, they do provide all the api functions , how do we use