tim4dexlus / Publications
Forum
indicator updates only half. what am i doing wrong?
double tickValue=MarketInfo( _Symbol ,MODE_TICKVALUE); string symbol = "EURUSD" ; double ask = SymbolInfoDouble (symbol, SYMBOL_ASK ); string name, length; bool DoAlert = false ; int index = 0 ; if (WaitForClose) index = 1 ; int counted_bars = IndicatorCounted(); if (counted_bars >
i understand the function iClose and iOpen, but i do not understand Close and Open when Programming.
i busy creating an indicator looking back at history bid price in history and the ask price of now. now the history part i get and works. as shown in the code. range = DoubleToStr(((( iClose ( "EURGBP" , 0 ,i))- iOpen ( "EURGBP" , 0 ,i))* 10000 ) +((( iClose ( "GBPUSD" , 0 ,i))- iOpen ( "GBPUSD" , 0
coding my first EA with icustom. however buy is to late. sell to late. close order to late. could someone take a look and help?
i am trying to make an EA with the slope direction indicator. not on hedging or scalping. but i would like to start a buy when color goes from red to blue and close the order when lines changes from blue to red and start a sell. and then so on. now i have come pretty far. except that it starts the
iTime is given me nightmares. august 8th = august 1? could someone help?
The problem is that the week starts on MT4, but when using iTime on Sunday the 8th when market opens, MT4 gives open time as last week (e.g. August 1st instead of August 8th). Not until sometime during middle of night in U.S. does MT4 actually give Sunday the 8th as the market open, so that it shows
is it possible to declare a history in icustom()
i know it is not possible to use barshift of -1 in icustom() the indicator always counts in the future. however when empty Value of slopeup = empty Value of slopedown i would like to have it 1 bar into the history and add the buy or sell or close order. otherwise my buy and sell and close orders are