Thanks Hanover, I'll do a search on Steve Hopwood and Ronald Raygun and see if they have created a crossover EMA.
Regards
Regards
Indicator fails to display - need help to fix 4 replies
MACD indicator with distribution display for MT4 4 replies
Indicator Will Not Display Array Numbers. 0 replies
MT4 - How to display indicator name on the top left corner of the main chart windows? 3 replies
Mt4 indicator cant display properly 3 replies
double lot=1.0; double tv=MarketInfo(Symbol(),MODE_TICKVALUE); Alert("Pip Value: ",DoubleToStr(tv*lot,5));
DislikedHey Hanover. Long time.
Hoping you can help me here. I've done the calculate Pip Value thing too. Problem is, my values seem to be off by a decimal point (well, in comparison to the pip value indicator that IBFX includes in their platform).
So, is theirs right or is mine.
Example: mine will say 1.508 on 1 lot. However, theirs will say 15.08 (EURGBP). I'm assuming mine is right compared to theirs (I think their trying to do correction code for 5 digit and failing).
my code:
[code] double lot=1.0;
double tv=MarketInfo(Symbol(),MODE_TICKVALUE);...Ignored
string ccy; int dig, tmf; double spr, pnt, tickval, bidp, askp, minlot, lswap, sswap; //+------------------------------------------------------------------+ int init() { //+------------------------------------------------------------------+ ccy = Symbol(); tmf = Period(); bidp = MarketInfo(ccy,MODE_BID); askp = MarketInfo(ccy,MODE_ASK); pnt = MarketInfo(ccy,MODE_POINT); dig = MarketInfo(ccy,MODE_DIGITS); spr = MarketInfo(ccy,MODE_SPREAD); tickval = MarketInfo(ccy,MODE_TICKVALUE); minlot = MarketInfo(ccy,MODE_MINLOT); lswap = MarketInfo(ccy,MODE_SWAPLONG); sswap = MarketInfo(ccy,MODE_SWAPSHORT); if (dig == 3 || dig == 5) { pnt *= 10; spr /= 10; tickval *= 10; }
DislikedThe code below is standard to all of my indicators and EAs. It should work for both 5/3 and 4/2 decimal br0kers, or at least for forex instruments.
In other words, if it's a 5/3 decimal br0ker, it will multiply the tickvalue by 10. That gives the correct dollar value per pip (per full lot traded).
In MT4, the values of Point, Tickvalue and Spread are given for the lowest possible price unit. With a 5/3 decimal br0ker, this is a point (or 'pipette'), rather than a pip. Hence you need to adjust it by a factor of 10, assuming that you want to work...Ignored
DislikedLatest version attached: tidied up the code somewhat. Screen position settings now all one parameter: window#, corner (TR=top right, BL=bottom left, etc), start horizontal pixel, start vertical pixel, vertical spacing (pixels between lines). All entries separated by commas. SortByFieldNo now gone, instead simply add a forward slash ( / ) or backslash ( in the [operator] area of any one of the Show.... settings, to sort in ascending, or descending, order respectively, using that parameter. Or if you prefer the former methodology, simply download...Ignored
DislikedHanover, For the life of me I can't get this to work...I know my way around MT, for sure, but I'm missing something. I put the files in the correct folders...am I suppose to compile first? I tried and got about 76 errors.Ignored
DislikedThanks for the replies. However, it's not working. Here's what I did. To install the latest update: --- Download the .mq4 and .ex4 files to your ....(MT4)/experts/indicators folder. --- Download the .mqh files to your ....(MT4)/experts/include folder (note: the .mq4 file will not compile correctly without these). --- Then exit and restart MT4. I got the latest versions, put them in and out a few times, triple checked the folders. Compiled the .mq4 file, got 0 errors, then saved the file. Closed MT, restarted, went into Indicator folder, opened the...Ignored
Disliked@skenobi: The indicator ignores any Saturday and Sunday candles, because they do not represent a true daily (24 hour) range. For example, suppose the average move for a given pair on Mondays thru Fridays is 100 pips per day, but on the short Sunday candle the average move is 10 pips. If your weekday trading strategy is based around ADR, then IMO the correct daily average is 500/5 = 100 pips, rather than 510/6 = 85 pips, or 510/7 = ~73 pips. That is the reason behind the way that the indy currently operates. {image}Ignored