voce tem uma boa ideia par automatizar esse indicador e deixalo super lucrativo?…
- User
voce tem uma boa ideia par automatizar esse indicador e deixalo super lucrativo?
//+------------------------------------------------------------------+ //| Indicator: BXC_Arrow_ICT_Zone.mq5 | //| Created with EABuilder.com | //| https://www.eabuilder.com | //+------------------------------------------------------------------+ #property copyright "Copyright 2023, Boxxocode Channel" #property link "https://www.youtube.com/@Boxxocode" #property version "1.00" #property description ""
//--- indicator settings #property indicator_chart_window #property indicator_buffers 2 #property indicator_plots 2
#property indicator_type1 DRAW_ARROW #property indicator_width1 3 #property indicator_color1 0x0FB833 #property indicator_label1 "Buy"
#property indicator_type2 DRAW_ARROW #property indicator_width2 3 #property indicator_color2 0x2473F2 #property indicator_label2 "Sell"
//--- indicator buffers double Buffer1[]; double Buffer2[];
input int ICT_Zone_pips = 5; double myPoint; //initialized in OnInit double Open[]; double Close[]; double Low[]; double High[];
void myAlert(string type, string message) { if(type == "print") Print(message); else if(type == "error") { Print(type+" | BXC_Arrow_ICT_Zone @ "+Symbol()+","+IntegerToString(Period())+" | "+message); } else if(type == "order") { } else if(type == "modify") { } }
double CandlestickBodyLength(ENUM_TIMEFRAMES timeframe, int shift) { double cOpen[]; CopyOpen(Symbol(), timeframe, shift, 1, cOpen); ArraySetAsSeries(cOpen, true); double cClose[]; CopyClose(Symbol(), timeframe, shift, 1, cClose); ArraySetAsSeries(cClose, true); return(MathAbs(cOpen[0] - cClose[0])); }
//+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int OnInit() {
SetIndexBuffer(0, Buffer1); PlotIndexSetDouble(0, PLOT_EMPTY_VALUE, EMPTY_VALUE); PlotIndexSetInteger(0, PLOT_ARROW, 233); SetIndexBuffer(1, Buffer2); PlotIndexSetDouble(1, PLOT_EMPTY_VALUE, EMPTY_VALUE); PlotIndexSetInteger(1, PLOT_ARROW, 234); //initialize myPoint myPoint = Point(); if(Digits() == 5 || Digits() == 3) { myPoint *= 10; } return(INIT_SUCCEEDED); }//+------------------------------------------------------------------+ //| Custom indicator iteration function | //+------------------------------------------------------------------+ int OnCalculate(const int rates_total, const int prev_calculated, const datetime& time[], const double& open[], const double& high[], const double& low[], const double& close[], const long& tick_volume[], const long& volume[], const int& spread[]) { int limit = rates_total - prev_calculated; //--- counting from 0 to rates_total ArraySetAsSeries(Buffer1, true); ArraySetAsSeries(Buffer2, true); //--- initial zero if(prev_calculated < 1) { ArrayInitialize(Buffer1, EMPTY_VALUE); ArrayInitialize(Buffer2, EMPTY_VALUE); } else limit++;
- Assistant
Para automatizar e potencialmente tornar esse indicador mais lucrativo, você poderia considerar as seguintes melhorias e ideias:
-
Backtesting e Otimização:
- Backtest o indicador usando dados passados para verificar sua eficácia e encontrar parâmetros ideais (como o valor de ). Isso pode ajudar a identificar padrões de que o indicador é mais preciso e aprimorar suas configurações.
-
- User
automative para mim
- Assistant