Forum

Be In Phase

Hello, i want to insert TSSF code in my EA as described in this article :https://championship.mql4.com/2008/news/366 Can someone explain me the following comment and formula for n trades window explained by Mr Fishchenko? "It is better to choose the time window on the basis of the best/worst

Call iCustom functions in expert

Hello, i have a very simple question. In my expert i want to call an exponential MA5 from an OsMA (having the same results like when you attach a MA to an OsMA chart and set it to previous indicator). How can i do that? I'm using functions. The OsMA is as follows : double OsMA() { return

Hiding Indicators from chart

Hi, Is it possible to hide indicators or not display them on a chart? Imagine you want to distribute an EA that assists the trader only signals by displaying arrows. Trader opens and closes positions from EA signals. EA calculates positions from many indicators (so this indics are in mt4 exp/ind

Modify an arrowcode size

Hi, How to increase font size of a rightprice?? Is it possible? ObjectSet ("G",OBJPROP_ARROWCODE,SYMBOL_RIGHTPRICE); ObjectSet("G",OBJPROP_FONTSIZE,40); does not work.... Thanks for advance

Need some help for multiTF iCustom calculation

Hello, i want to make my code a little softier. I have a lot of iCustom calculation on several TF and want to improve algorithm by putting all these calculation in a FOR operator. I have : ind30b0=Icustom(); //ind TF30 bar 0 ind30b1=Icustom(); //ind TF30 bar 1 ind15b0=Icustom(); //ind TF15 bar 0

Margin Check doesn't work

Hi, i use a Void function to make a margin check before opening a new trade.>1500% ok for open, <1500% wait for next tick. When margin low the check applies because i see in journal Margin Check Failed, but the order is then opened. Has someone an explanation? //---- Margin Check void MarginCheck (

Is there a max length of an order comment?

Hello, in my EA i use tags to manage orders. It seems not to work and i think my comments are a bit too long (ex : Upperband range - Short order opened <XXTO>, where the taf is between <>). I will reduce a lot my comments length but for my knowledge i would like to know the limit if one exists. I

Close trades at EA deinit

This simply does'nt work. My EA opens lot of trades, and i just want when i close EA that EA closes all his trades. I think it doesn't work because deinit is fast, faster that time required to close all trades. In case of bugs can someone see code below? I insert CloseFunction in deinit function

2008.11.13 21:00:01 Toto USDCADm,M30: ArrayInitialize function internal error

Hi, Got this error. I store ticket number in an array, which i initialize with zeros when orders are closed. This error appears randomly. The USDCAD order has been closed by EA correctly then this error has been generated. Found nothing in help or doc.... Any help? Edit : working with version

Orders management and EA init

Rehi, ;) Got another problem while forward testing my EA. EA opened a short on EURCHF. I initialized EA on chart (short always in trade list). Indicator says to EA to close the losing short but EA dont want to close it, and i don't see what's going wrong in my close loop. (i use global variable to