fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. skauch
    3. Posts
    S
    • Profile
    • Following 2
    • Followers 0
    • Topics 15
    • Posts 52
    • Best 0
    • Controversial 0
    • Groups 0

    Posts made by skauch

    • RE: pending order closed

      @skauch said in pending order closed:

      ok,
      my error, no closed
      https://fxdreema.com/shared/qeIJGFste
      I would like that, when a buy is opened, the pending sell is cancelled, vice versa, sell, the buy is cancelled

      Screenshot 2023-10-11 alle 19.18.32.png

      posted in General Discussions
      S
      skauch
    • RE: pending order closed

      ok,
      my error, no closed
      https://fxdreema.com/shared/qeIJGFste
      I would like that, when a buy is opened, the pending sell is cancelled, vice versa, sell, the buy is cancelled

      posted in General Discussions
      S
      skauch
    • RE: pending order closed

      @l-andorrà this exemple
      https://fxdreema.com/shared/nLvF8jgVb

      posted in General Discussions
      S
      skauch
    • RE: pending order closed

      does not workScreenshot 2023-10-06 alle 22.06.03.png

      posted in General Discussions
      S
      skauch
    • RE: pending order closed

      thanks,do I have to double the pending buy an sell, putting tp, sl......?

      posted in General Discussions
      S
      skauch
    • pending order closed

      Hi, I need help, thanks, I would like to create a function that closes the pending order when an opposite one opens.

      posted in General Discussions
      S
      skauch
    • closing pending order with high spreads

      hi, I would like to close pending orders when there is a high spread, would this be OK? Thank you!
      Screenshot 2023-09-14 alle 15.13.18.png

      posted in General Discussions
      S
      skauch
    • support and resistence

      hi everyone, i would like to ask if anyone knows how to find support and resistance points with the classic mt4 indicators.
      no pivot point
      thank you
      exemple this code is possible create with a block?

      //+------------------------------------------------------------------+
      //| Support and Resistance.mq5 |
      //| Copyright © 2005, Dmitry |
      //| |
      //+------------------------------------------------------------------+
      #property copyright "Copyright © 2006, MetaQuotes Software Corp."
      #property link "http://www.metaquotes.net/"
      //---- version
      #property version "1.00"
      //---- indicator in the chart window
      #property indicator_chart_window
      //---- 2 indicator buffers are used
      #property indicator_buffers 2
      //---- 2 graphic plots are used
      #property indicator_plots 2
      //+----------------------------------------------+
      //| Bearish indicator options |
      //+----------------------------------------------+
      //---- drawing type as arrow
      #property indicator_type1 DRAW_ARROW
      //---- Magenta color
      #property indicator_color1 Magenta
      //---- Line width
      #property indicator_width1 1
      //---- Support label
      #property indicator_label1 "Support"
      //+----------------------------------------------+
      //| Bullish indicator options |
      //+----------------------------------------------+
      //---- drawing type as arrow
      #property indicator_type2 DRAW_ARROW
      //---- Lime color
      #property indicator_color2 Lime
      //---- Line width
      #property indicator_width2 1
      //---- Resistance label
      #property indicator_label2 "Resistance"

      //+----------------------------------------------+
      //| Indicator input parameters |
      //+----------------------------------------------+
      input int iPeriod=70; // ATR period
      //+----------------------------------------------+

      //---- declaration of dynamic arrays, used as indicator buffers
      double SellBuffer[];
      double BuyBuffer[];
      //---
      int StartBars;
      int FRA_Handle;
      //+------------------------------------------------------------------+
      //| Custom indicator initialization function |
      //+------------------------------------------------------------------+
      void OnInit()
      {
      //---- initialization of global variables
      StartBars=6;
      //---- get handle of the iFractals indicator
      FRA_Handle=iFractals(NULL,0);
      if(FRA_Handle==INVALID_HANDLE)Print(" Íå óäàëîñü ïîëó÷èòü õåíäë èíäèêàòîðà FRA");

      //---- set SellBuffer as indicator buffer
      SetIndexBuffer(0,SellBuffer,INDICATOR_DATA);
      //---- set indxex of starting bar to plot
      PlotIndexSetInteger(0,PLOT_DRAW_BEGIN,StartBars);
      //---- set label for support
      PlotIndexSetString(0,PLOT_LABEL,"Support");
      //---- set arrow char code
      PlotIndexSetInteger(0,PLOT_ARROW,159);
      //---- set indexing as timeseries
      ArraySetAsSeries(SellBuffer,true);

      //---- set BuyBuffer as an indicator buffer
      SetIndexBuffer(1,BuyBuffer,INDICATOR_DATA);
      //---- set index of starting bar to plot
      PlotIndexSetInteger(1,PLOT_DRAW_BEGIN,StartBars);
      //--- set label for resistance
      PlotIndexSetString(1,PLOT_LABEL,"Resistance");
      //---- set arrow char code
      PlotIndexSetInteger(1,PLOT_ARROW,159);
      //---- set indexation as timeseries
      ArraySetAsSeries(BuyBuffer,true);

      //---- set precision
      IndicatorSetInteger(INDICATOR_DIGITS,_Digits);
      //---- indicator short name
      string short_name="Support & Resistance";
      IndicatorSetString(INDICATOR_SHORTNAME,short_name);
      //----
      }
      //+------------------------------------------------------------------+
      //| 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[]
      )
      {
      //---- checking of bars
      if(BarsCalculated(FRA_Handle)<rates_total
      || rates_total<StartBars)
      return(0);

      //---- declaration of local variables
      int to_copy,limit,bar;
      double FRAUp[],FRALo[],upVel,loVel;

      //---- calculation of bars to copy
      //---- and starting index (limit) for bars recalculation loop
      if(prev_calculated>rates_total || prev_calculated<=0)// checking the first call
      {
      to_copy=rates_total; // bars to copy
      limit=rates_total-StartBars-1; // starting index
      }
      else
      {
      to_copy=rates_total-prev_calculated+3; // bars to copy
      limit=rates_total-prev_calculated+2; // starting index
      }

      //---- set indexing as timeseries
      ArraySetAsSeries(FRAUp,true);
      ArraySetAsSeries(FRALo,true);
      ArraySetAsSeries(high,true);
      ArraySetAsSeries(low,true);

      //---- copy indicator data to arrays
      if(CopyBuffer(FRA_Handle,0,0,to_copy,FRAUp)<=0) return(0);
      if(CopyBuffer(FRA_Handle,1,0,to_copy,FRALo)<=0) return(0);

      //---- main loop
      for(bar=limit; bar>=0; bar--)
      {
      BuyBuffer[bar] = 0.0;
      SellBuffer[bar] = 0.0;

         upVel = NormalizeDouble(FRAUp[bar], _Digits);
         loVel = NormalizeDouble(FRALo[bar], _Digits); if(upVel == 0)Print(upVel);
         
         if(upVel != EMPTY_VALUE) BuyBuffer[bar] = high[bar]; else BuyBuffer[bar] = BuyBuffer[bar+1];
         if(loVel != EMPTY_VALUE) SellBuffer[bar] = low[bar]; else SellBuffer[bar] = SellBuffer[bar+1];
       }
      

      //----
      return(rates_total);
      }
      //+------------------------------------------------------------------+

      posted in General Discussions
      S
      skauch
    • RE: Color in the chart

      @skauch insert in on init, is ok

      posted in General Discussions
      S
      skauch
    • RE: Color in the chart

      @l-andorrà HI Thanks,when I load my ea, the chart has to change color

      posted in General Discussions
      S
      skauch
    • Color in the chart

      hi, this comand is ok??
      thanks
      0_1622759214165_Schermata 2021-06-04 alle 00.25.19.png

      posted in General Discussions
      S
      skauch
    • RE: close an open order at 21:00

      @q8carpenter
      is ok?
      0_1622649919398_Schermata 2021-06-02 alle 17.46.33.png

      posted in General Discussions
      S
      skauch
    • RE: close an open order at 21:00

      @q8carpenter
      yes pending order

      posted in General Discussions
      S
      skauch
    • RE: close an open order at 21:00

      @q8carpenter said in close an open order at 21:00:

      @skauch

      Yes that is supposed to work.

      If the future or on other strategies, you may also need to be aware of the block numbers, as the EA will run the blocks in order of their numbers and it may screw things up, however, I don't see a need to change the order here.

      is ok?0_1622648824881_Schermata 2021-06-02 alle 17.46.33.png

      posted in General Discussions
      S
      skauch
    • RE: close an open order at 21:00

      @q8carpenter 2 once for day?
      0_1622648251368_Schermata 2021-06-02 alle 17.36.53.png

      posted in General Discussions
      S
      skauch
    • close an open order at 21:00

      Can anyone help me how to close an open order at 21:00?
      my robot is based on the strategy of pending orders, I have already created the command that after 20 hours the pending orders are closed, but I would also like to close the open order at the same time that the pending is canceled.
      thanks
      https://fxdreema.com/shared/o82I58jT

      posted in General Discussions
      S
      skauch
    • Panel info

      hi everyone, i created this panel, i don't understand why it takes the magic number of other EAs and also the lot
      https://fxdreema.com/shared/Aw4DmYDIc

      posted in General Discussions
      S
      skauch
    • RE: Resources insert indicator

      @miki si si messo

      posted in General Discussions
      S
      skauch
    • RE: Resources insert indicator

      @skauch o devo metterlo solo sui ordini ?

      posted in General Discussions
      S
      skauch
    • RE: Resources insert indicator

      @miki
      ho impostato cosi'
      i set it up like this.
      0_1614779422652_Schermata 2021-03-03 alle 14.49.47.png

      posted in General Discussions
      S
      skauch
    • 1
    • 2
    • 3
    • 1 / 3