MA Cross signal is not reliable and it redraw as price changes.
Attached File(s)
MA_Cross_Signal_Arrow.mq4
3 KB
|
179 downloads
I will code your pivot EAs for no charge 23 replies
I will code your scalping EAs for no charge 163 replies
Oanda MT4 - Indicators and EAs not showing 2 replies
EAs and indicators relating to moutaki... 22 replies
InterbankFX has loaded its MT4 platform with custom EAs, indicators and scripts 1 reply
Disliked{quote} Have an array of double[] atrvalue -> store atr values, then, sort array and write top 10 of array to commentIgnored
Disliked{quote} array[value1][value2] loop symbolstotal value1 = symbolname value2 = atrvalue arraysort descending loop arraysize ; select first 10 show value1 and value2 so for any selected time frame using ENUM_TIMEFRAMES i get to see top 10 pairs with highest atr values OnInit() means i need to run this loop once only * just a flow chart of what i needIgnored
#property version "1.00" #property strict extern ENUM_TIMEFRAMES PR; //+------------------------------------------------------------------+ //| Expert initialization function | //+------------------------------------------------------------------+ int OnInit() { //--- //--- return(INIT_SUCCEEDED); } //+------------------------------------------------------------------+ //| Expert deinitialization function | //+------------------------------------------------------------------+ void OnDeinit(const int reason) { //--- } //+------------------------------------------------------------------+ //| Expert tick function | //+------------------------------------------------------------------+ void OnTick() { //--- PV("Day",1440); PV("Week",10080); PV("Month",4200); double MR = MarketInfo(Symbol(),MODE_MARGINREQUIRED); double AE = (AccountFreeMargin()/MR)*0.01*1; double NE = NormalizeDouble(AE,2); Comment(NE); double b=0; for(int i=1; i<=OrdersTotal(); i++) // Cycle searching in orders { if (OrderSelect(i-1,SELECT_BY_POS)==true) { double pBid=MarketInfo(OrderSymbol(), MODE_BID); double pAsk=MarketInfo(OrderSymbol(), MODE_ASK); if (OrderType() == OP_BUY) {b = iLow(OrderSymbol(),PR,iLowest(OrderSymbol(),PR,MODE_LOW,14,0));} if (OrderType() == OP_SELL) {b = iHigh(OrderSymbol(),PR,iHighest(OrderSymbol(),PR,MODE_HIGH,14,0));} if (OrderType()==OP_BUY && pBid > b) { bool bs = OrderModify(OrderTicket(),OrderOpenPrice(),b,OrderTakeProfit(),0,Green); } if (OrderType()==OP_SELL && pAsk < b) { bool ss = OrderModify(OrderTicket(),OrderOpenPrice(),b,OrderTakeProfit(),0,Green); } if (OrderType() == OP_BUY && pAsk < b) { bool bc = OrderClose(OrderTicket(),OrderLots(),pBid,0,Green); } if (OrderType() == OP_SELL && pBid > b) { bool sc = OrderClose(OrderTicket(),OrderLots(),pAsk,0,Green); } } } } //+------------------------------------------------------------------+ void PV(string NM, int TM) { double H = iHigh(Symbol(),TM,1); double L = iLow(Symbol(),TM,1); double C = iClose(Symbol(),TM,1); double P = ( H+L+C )/3; LN ( NM+" Pivot" , P , DimGray ); } void LN ( string nm , double val , color cl ) { ObjectDelete(nm); ObjectCreate ( 0 , nm , OBJ_HLINE , 0 , Time[0] , val ) ; string nmL = nm + "_Label"; string nmT = nm;// + " = " + DoubleToStr ( val , Digits ) ; ObjectDelete(nmL); ObjectCreate ( 0 , nmL , OBJ_TEXT , 0 , Time[0] , val ); ObjectSetText ( nmL , nmT , 8 , "Tahoma", cl); }
Disliked{quote} Have an array of double[] atrvalue -> store atr values, then, sort array and write top 10 of array to commentIgnored
DislikedHi Guys, I need help with a MTF multipair RSI Dashboard. I've coded it in MT4 but the problem I have is that its not displaying the RSI values for each pair and timeframe. I keep rewriting the damn dashboard to no avail so could smarter brains take a look and tell me how to fix the problem. In essence my approach is to define 1. a list of user input symbols 2. a list of user input timeframes [j] 3. calculate the RSI value for each pair and timeframe [i+j] 4. calculate the average RSI value across TF's for each pair (sum all RSI /no of TF for...Ignored
Disliked{quote} Why do you even want this? MA Cross signal is not reliable and it redraw as price changes. {file}Ignored
Disliked{quote} Hi master , this is not working on chart , and the filter MA 55 is not indicated ... please help review ThanksIgnored
Disliked{quote} Thanks a lot, don't worry about the % in distance. Its already more than I expected. Thank you.Ignored
Disliked{quote} Change your option inputs. There are input option where you can enter. You can enter whatever number you would like for this MA Cross. After, load up your own MA indicators per your settings.Ignored
Disliked{quote} This is based on EMA method, check against the one you have on tradingview because I'm not very sure of the formula of the levels from your description. I use 1) Upper Lines Target Price = ClosePrice+Multiplier*(_ma1-_ma2) 2) Lower Lines Target Price = ClosePrice-Multiplier*(_ma1-_ma2) If it's not correct, post the link of the tradingview indicator so I can have a look at the pine script calculation. {file} {image}Ignored