Attached File(s)
MA_crossover_eg.mq4
11 KB
|
136 downloads
MA_crossover_eg.mq5
15 KB
|
123 downloads
MACD_eg.mq5
19 KB
|
118 downloads
2
I will code your pivot EAs for no charge 24 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} Examples of ma crossover in mql4 and mql5, and macd with chart arrows in mql5, note additional and different things that are done with mt5. Use the current event handlers that are given to you when you start a new indicator. Prevcalculated is the number of bars on the previous call of oncalculate, ie on first loading or chart has updated it's history, prevcalculated is 0, on the next tick it will be equal to ratestotal which is the number of bars on the chart. Indicator styling should be set in properties so that every time the indicator...Ignored
Disliked{quote} Hi Master. sorry for this request. Could you convert this code for mq4? appreciated. {file}Ignored
Disliked{quote} #ifdef __MQL5__ for(int i=PositionsTotal()-1; i>=0; i--) //count backwardsIgnored
{ bool res= OrderModify( i ,OrderOpenPrice(), 0.0,OrderTakeProfit(),0,Blue); if(!res) Print("Error in OrderModify. Error code=",GetLastError()); else Print("Order modified successfully."); // set stop loss to 0 using PositionModify or Custom function }
Disliked{quote} I have altered your version to put the signals above/below the candles. {file} Some time ago I made a version of the Hoffman System for MT4 I now have updated it to the latest MT4 build 1355. This version shows the signals based on the MA cross and the 2 colored MA line which shows when the angle of the MA is valid for trade entries. NOTE : You cannot change the name of the indicator in any way because if you do it will not work. {file} {image}Ignored
Dislikedcan someone make me an indicator that alerts me with an arrow (and whatever custom wav file I choose) when a candle closes at an extreme. So a down bar that closes at the low tick would have a red arrow above the bar (on close) and would say 'extreme' (assuming I made a wav file that said 'extreme) An up bar that closes at the high tick would have a blue arrow below the bar (on close) thxIgnored
Disliked{quote} Thank you I'm on MT4 platforms, do you think it could work? have a great day edit: compiler is accepting it, I will try to implement it. Can I assume I could use the same method to put the trailing stop in the hands of the Custom indicator? edit 2 if I'm getting it right, I'm not able to find a "PositionModify" to implement, only the OrderModify, that should take care of market and pending orders if that is correct, I would write this to fulfill the task to remove the SL , both for Position and Order Modification - am I right? thanks { bool...Ignored
#ifdef __MQL5__ #include <trade/trade.mqh> CTrade trade; #endif void OnTick() { MqlDateTime dt; TimeToStruct(TimeCurrent(),dt); if(dt.sec == 30) { switch(dt.min) { case 1: case 3: case 5: case 7: case 9: case 11: case 13: case 15: case 25: case 27: case 29: case 48: #ifdef __MQL5__ for(int i=PositionsTotal()-1; i>=0; i--) //count backwards { ulong ticket = PositionGetTicket(i); if(PositionSelectByTicket(ticket)) // select the order { // set stop loss to 0 using PositionModify or Custom function if(!trade.PositionModify(ticket,0,PositionGetDouble(POSITION_TP))) { Print("Failed to modify ticket #", ticket); } } } #else for(int i=OrdersTotal()-1; i>=0; i--) //count backwards { if(OrderSelect(i,SELECT_BY_POS)) // select the order { // set stop loss to 0 using OrderModify or Custom function if(!OrderModify(OrderTicket(),OrderOpenPrice(),0,OrderTakeProfit(),OrderExpiration())) { Print("Failed to modify ticket #", OrderTicket()); } } } #endif break; } } }
Disliked{quote} HI, again coders. Does anyone can help me for convert the code for mt4? this is a RSI Code. I appreciated. {file}Ignored
Disliked{quote} An effort is a step in the right direction. You're really close. Here's the full code: #ifdef __MQL5__ #include <trade/trade.mqh> CTrade trade; #endif void OnTick() { MqlDateTime dt; TimeToStruct(TimeCurrent(),dt); if(dt.sec == 30) { switch(dt.min) { case 1: case 3: case 5: case 7: case 9: case 11: case 13: case 15: case 25: case 27: case 29: case 48: #ifdef __MQL5__ for(int i=PositionsTotal()-1; i>=0; i--) //count backwards { ulong ticket = PositionGetTicket(i); if(PositionSelectByTicket(ticket)) // select the order { // set stop loss to...Ignored
Disliked{quote} An effort is a step in the right direction. You're really close. Here's the full code: #ifdef __MQL5__ #include <trade/trade.mqh> CTrade trade; #endif void OnTick() { MqlDateTime dt; TimeToStruct(TimeCurrent(),dt); if(dt.sec == 30) { switch(dt.min) { case 1: case 3: case 5: case 7: case 9: case 11: case 13: case 15: case 25: case 27: case 29: case 48: #ifdef __MQL5__ for(int i=PositionsTotal()-1; i>=0; i--) //count backwards { ulong ticket = PositionGetTicket(i); if(PositionSelectByTicket(ticket)) // select the order { // set stop loss to...Ignored
Print(TimeCurrent());
Disliked{quote} I don't think that we need to do TimeToStruct() any more. Current versions of MQL4 return time in the struct form already. You can easily check that by Print().Ignored
Disliked{quote} MQL5 doesn't have functions like Day(), Hour(), Seconds(), etc. So I created a struct in case the user places the code in MQL5.Ignored
Disliked{quote} True. This is a very helpful source, though there are a few inconsistencies, but we can manage with those. https://www.mql5.com/en/articles/81 {file}Ignored
DislikedDear Coders, I have this useful old/simple CloseAtProfit expert that I downloaded from MT4 codebase. When compiled the code gives some return value errors/warnings. Could you please update the code to eliminate the errors? Thank you & regards, Xezal {file}Ignored
Disliked...Engulfing_Candle_backwards_forwards_v1.1...Are the horizontal mark lines coded in term of buffers so i can read using iCustom(), or if you release the source code are the price levels easy to be picked up for further calculation ?...Ignored
Disliked{quote} Good morning CJA. Sometime ago you updated two Hoffman system indicators. Do you have time to update them again to MT5.? It would be much appreciated. ThanksIgnored