Hi
I have attached a Screenshot of the Percentage on a Chart
Best regards
Derek
I have attached a Screenshot of the Percentage on a Chart
Best regards
Derek
Attached Image
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
Dislikedgood day pals , please kindly help with this indicator in the attached picture. thanks {image}Ignored
Disliked{quote} //----- hey ezios..... stand alone ma cross type ea's like that seldom work..... the 5 and 7 ma's twist too much..... extra filters might be needed.... corrected the code....... example only.... h //------ {file}Ignored
DislikedHi! I'm struggling with this. Its a script with multiple orders and I also want one more option to chose to trail. I try to put some code in this but it does not work. Thanks if someone can help... {file} {file}Ignored
After refactoring, your script should look something like this
#property script_show_inputs #include <stdlib.mqh> #define MAGIC 9874369 extern double LOT = 0.01; extern int TP1 = 8; extern int TP2 = 16; extern int TP3 = 24; extern int TP4 = 32; extern int TP5 = 40; extern int SL = 15; //--------------------------- void OnStart() { double _point = _Point; if(_Digits == 3 || _Digits == 5) _point *= 10; RefreshRates(); double tps[5]; tps[0] = round_price(Bid - TP1 * _point); tps[1] = round_price(Bid - TP2 * _point); tps[2] = round_price(Bid - TP3 * _point); tps[3] = round_price(Bid - TP4 * _point); tps[4] = round_price(Bid - TP5 * _point); double sl = round_price(Bid + TP1 * _point); double lot = round_lots(LOT); for(int i=0; i<5; i++) { RefreshRates(); int ticket = OrderSend( _Symbol, OP_SELL, LOT, Bid, 0, sl, tps[i], "Placed by script", MAGIC ); if(ticket < 0) { Alert(StringFormat("OrderSend Error: %s", ErrorDescription(GetLastError()) )); } } } double round_price(const double price) { return roundit(price, SymbolInfoDouble(_Symbol, SYMBOL_TRADE_TICK_SIZE)); } double round_lots(const double lots) { return roundit(lots, SymbolInfoDouble(_Symbol, SYMBOL_VOLUME_STEP)); } double roundit(const double number, const double step) { return step * round(number / step); }
Disliked{quote} There are a lot of fundamental issues with this... scripts don't run init functions scripts don't run on charts to manage trades (like EAs) the TPs and SL need to be calculated before beginning the ordering process the order sending needs to happen in a loop so rates can be refreshed in between blocking calls to OrderSend ALL orders need to be checked for result, not only the first one A magic number should be used for differentiation of source prices need to be rounded to the instrument's tick-size lots need to be rounded to the instrument's...Ignored
Disliked{quote} //----- hey ezios..... yes..... works for me on the eurusd 15 minute chart, using the default settings.... oanda broker..... trades match the indicator you posted.....h //---- {image}Ignored
Disliked{quote} If I change to an integer (int), is it a solution? Will this not change the flow? Because if it's compiled with the old version there's no problem. {file}Ignored
Disliked{quote} Yes you can change it. The Type of the subrutine define what your return value can be. for example: bool OS(){ if(OrderSend(......)==true) return(true); return(false);}//where return value is boolean int CalculateValue(int x){ x=(x+y)*z; return(x);//where return value is an integerIgnored
bool send_order() { int ticket = OrderSend(...); return ticket >= 0; }
DislikedHello there, Can you help me? I want to test the indicator. but you need an expert. indicator is ext4, only signal and arrows available {image}Ignored
Disliked{quote} Let the indicator run in the tester visual mode(indicator), and if the arrows are the same like when you attachit ti the chart, then it is possible to call it from an EA.Ignored
Disliked{quote} yes it works in test mode. but only arrows come out. arrows colored. I did the experiment with the icustom command but I don't know the exact encoding.Ignored
DislikedHello there, Can you help me? I want to test the indicator. but you need an expert. indicator is ext4, only signal and arrows available {image}Ignored
DislikedHi I have attached a Screenshot of the Percentage on a Chart Best regards Derek {image}Ignored
Disliked{quote} share the indicator, and it is possible to include in a simple EA. Or if you dont wannt to share you can PM me.Ignored