仕事が完了した
実行時間20 分
依頼者からのフィードバック
Highly recommended, Work delivered very fast and with 100% satisfaction,
指定
ON an EA (not for trading but only for reading buffers) which has a function SearchZigZagExtremums
I want this function to be converted into multi symbols multi period
below is my attempt to modify the free program which is available in mql codebase
//+------------------------------------------------------------------+ //| ZigZag EA(barabashkakvn's edition).mq5 | //| Copyright © 2009, Tokman Yuriy | //| yuriytokman@gmail.com | //+------------------------------------------------------------------+ #property copyright "Copyright © 2009, Tokman Yuriy" #property link "yuriytokman@gmail.com" #property version "1.002" //--- input parameters input string ____1___ = "Настройки индикатора ZigZag"; input int ExtDepth = 12; // Depth input int ExtDeviation = 5; // Deviation input int ExtBackstep = 3; // Backstep //--- //--- int handle_iCustom; // variable for storing the handle of the iCustom indicator #define RESET 0 int min_rates_total; int symbolCount; string symbolsList[]; //+------------------------------------------------------------------+ //| Expert initialization function | //+------------------------------------------------------------------+ int OnInit() { //--- min_rates_total=100; //--- indicator buffers mapping symbolCount=SymbolsTotal(true); if( ArrayResize(symbolsList, symbolCount) < symbolCount ) return (INIT_FAILED); //--- create handle of the indicator iCustom for(int i=0; i<symbolCount; i++) { symbolsList[i] = SymbolName(i,true); handle_iCustom=iCustom(symbolsList[i],Period(),"Examples\\ZigZag"); //--- if the handle is not created if(handle_iCustom==INVALID_HANDLE) { //--- tell about the failure and output the error code PrintFormat("Failed to create handle of the iCustom indicator for the symbol %s/%s, error code %d", symbolsList[i], EnumToString(Period()), GetLastError()); //--- the indicator is stopped early return(INIT_FAILED); } } //--- return(INIT_SUCCEEDED); } //+------------------------------------------------------------------+ //| Expert deinitialization function | //+------------------------------------------------------------------+ void OnDeinit(const int reason) { //--- } //+------------------------------------------------------------------+ //| Expert tick function | //+------------------------------------------------------------------+ void OnTick() { //--- //--- for(int j=0; j<symbolCount; j++) { symbolsList[j] = SymbolName(j,true); double array_results[]; if(!SearchZigZagExtremums(4,array_results)) return; double high=0.0,low=0.0; double room_0 = array_results[0]; // index 0 double room_1 = array_results[1]; // index 1 double room_2 = array_results[2]; // index 2 double room_3 = array_results[3]; // index 3 //--- находим верх и низ if(room_1>room_2) { high=room_1; low=room_2; } else { high=room_2; low=room_1; } Print(symbolsList[j], array_results[0]); Sleep(1000); } //--- } //+------------------------------------------------------------------+ //| Search for indicator extremums | //+------------------------------------------------------------------+ bool SearchZigZagExtremums(const int count,double &array_results[]) { if(!ArrayIsDynamic(array_results)) { Print("This a no dynamic array!"); return(false); } ArrayFree(array_results); ArrayResize(array_results,count); ArraySetAsSeries(array_results,true); int buffer_num=0; // indicator buffer number double arr_buffer[]; ArraySetAsSeries(arr_buffer,true); //--- reset error code ResetLastError(); //--- fill a part of the iCustom array with values from the indicator buffer int copied=CopyBuffer(handle_iCustom,buffer_num,0,100,arr_buffer); if(copied<0) { //--- if the copying fails, tell the error code PrintFormat("Failed to copy data from the iCustom indicator, error code %d",GetLastError()); //--- quit with zero result - it means that the indicator is considered as not calculated return(false); } int elements=0; for(int i=0; i<copied; i++) { if(arr_buffer[i]!=0) { array_results[elements]=arr_buffer[i]; elements++; if(elements==count) break; } } if(elements==count) return(true); //--- return(false); }
Goal : I want this program to be modified so it can read buffers
double room_0 = array_results[0]; // index 0 double room_1 = array_results[1]; // index 1 double room_2 = array_results[2]; // index 2 double room_3 = array_results[3]; // index 3
for each symbol existed in marketwatch and when i print
Print(symbolsList[j], array_results[0]);
I get results like
Symbol_1 buffer_for_Symbol_1 for PERIOD_1
Symbol_2 buffer_for_Symbol_2 for PERIOD_2
like this
応答済み
1
評価
プロジェクト
643
26%
仲裁
92
72%
/
14%
期限切れ
12
2%
仕事中
パブリッシュした人: 1 code
2
評価
プロジェクト
50
10%
仲裁
1
0%
/
0%
期限切れ
8
16%
暇
類似した注文
Pending orders based on the Candle Time / NAS100
30 - 50 USD
On a new M15 candle, wait 4 minutes , then track the candle High and Low continuously . Important to begin all this process the 1st 4 min. the distance between the high and low not less than 8 USD$. Place Sell Stop at the candle High and Buy Stop at the candle Low . If a new High or new Low forms, cancel all pending orders , recalculate, and place new ones. One minute before candle close , delete all pending orders
Robot Requirements Specification
30 - 100 USD
step by step and structure this into a full IEEE 830 / ISO/IEC/IEEE 29148 style Requirements Specification. This format will include: Introduction System Overview Functional and Performance Requirements Traceability Matrix (linking requirements to test cases) Verification and Validation Compliance Standards 1. Introduction 1.1 Purpose The purpose of this document is to define the technical requirements for the
Development of an Expert Advisor for MT4
30 - 50 USD
Good day, I would like to have an expert advisor for my MT4 indicator that can scan and provide push notification messages for entry opportunities across different time frames when a double top or bottom is created
Candle Closure conditions
30+ USD
I would like an EA that automatically opens a position if the timeframe candle (that the ea is running on) closes beyond a certain level that we define. Note that it is not when price reaches that level (for that we have the buy and sell stops), it would I am talking about MT5. So the EA would: - Have the possibility to define the level (price) that we would like to buy or sell if the candle closes beyond it. - If
I want an EA that work with my support and resistance indicator. Buy entry condition are: 1. hen candlestick closes in side the support bar. 2. When candlestick break above resistance bar. Likewise sell condition: 1. When candlestick closes inside the resistance bar, 2. When candlestick break below support bar
Mayberry bot
30+ USD
I am looking for an experienced MQL5 developer to build a clean, non-martingale, non-grid Expert Advisor for MetaTrader 5. The EA will trade XAUUSD (Gold) on the M15 timeframe using a trend + pullback strategy with strict risk management
I want a copy bot that copy’s for all my accounts I want 1 master 5 slave accounts and it Copy’s the accounts from the master based of the lot size of the account So % wise £1000 account 0.1 £100 account 0.01 trades And as the lot size goes up it amplifies it to the other account and vice versa so the % is always the same based of the Trade of the master and vice versa if the slave account is higher than the master
NinjaTrader 8 custom indicator
150+ USD
hello great developer i want a NinjaTrader 8 custom indicator (not a full bot) • It implements the Jackson–Dalton Trading System • Includes Z1/Z2/Z3 zones, VWAP + deviation, and session volume profile (POC/VAH/VAL) • Has day-type classification and configurable alerts • Primary instruments are BTC/USDT and ETH/USDT • Full source code and documentation are required • Semi-automation and futures support are optional /
1. Goal I want a MetaTrader 5 Expert Advisor that trades a simple Supertrend trend‑following idea, but with professional‑grade risk management and filters. It should be robust enough for real money on instruments like XAUUSD and GBP pairs, using small, consistent risk per trade rather than martingale or grid. 2. Strategy Logic Indicators (I will supply the .mq5 files if needed): Supertrend (ATR‑based), with
EA Name: Stochastic EA (MT5)
30 - 150 USD
EA Name: Stochastic EA (MT5) Timeframe • Works only on M1, M5, M15, M30 ⸻ Indicators & Settings 1. Stochastic Oscillator • %K Period: 14 (editable) • %D Period: 3 (editable) • Slowing: 3 (editable) • Buy Level: 10 (editable via input Buy Level) • Sell Level: 90 (editable via input Sell Level) 2. Simple Moving Average (SMA) • Period: 100 (editable via input SMA Period) • Acts as a hard filter for trades: • Buy
プロジェクト情報
予算
30+ USD