fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. Bsalamone
    3. Posts
    B
    • Profile
    • Following 0
    • Followers 0
    • Topics 4
    • Posts 25
    • Best 0
    • Controversial 1
    • Groups 0

    Posts made by Bsalamone

    • RE: Trailing stop problem, sell works perfect, buy does not please help

      @xfire just tried that one, and the buy still has no trailing stop, wtf is going on here??????

      posted in Questions & Answers
      B
      Bsalamone
    • RE: Trailing stop problem, sell works perfect, buy does not please help

      @l-andorrĂ  I tried that and it didn't work, I am just so confused why the sell trades work for trailing stop but my buy trades don't I just don't get it ...

      posted in Questions & Answers
      B
      Bsalamone
    • RE: Trailing stop problem, sell works perfect, buy does not please help

      @xfire https://fxdreema.com/shared/ejS95FHIb please help thanks!! or do I need to do a seperate EA one for long and one for short? thanks!!

      posted in Questions & Answers
      B
      Bsalamone
    • Trailing stop problem, sell works perfect, buy does not please help

      0_1586394166813_65295808-89c3-41d7-9bd5-49509312cbe2-image.png

      posted in Questions & Answers
      B
      Bsalamone
    • RE: Problem using old indicator need help on start() vs on calculate()

      I fixed the problem, I had to recode the indicator using the oncalculate function and then I had to comment out #property strict for some reason, so now it works with my mt4 EA đŸ™‚ thought finding a winning strategy was going to be easier than this lol!! still need to work on a better strategy but the indicator works with EA now, I will attach it here just incase anyone else wants to use this in their EA 0_1586298751600_bsalVWAP.mq4

      posted in Bug Reports
      B
      Bsalamone
    • RE: Problem using old indicator need help on start() vs on calculate()

      I have not, I will look into it, I am trying to find a volume weighted average indicator that i can use for mt4, I have found a few for mt5 maybe i should just switch to mt5, smh

      posted in Bug Reports
      B
      Bsalamone
    • RE: Problem using old indicator need help on start() vs on calculate()

      @xfire I have been trying to find a better version for days!!! I DONT UNDERSTAND LOL

      posted in Bug Reports
      B
      Bsalamone
    • RE: Problem using old indicator need help on start() vs on calculate()

      when I run the EA it makes absolutely no trades at all ... I have been trying to figure this out for days so very frustrating

      posted in Bug Reports
      B
      Bsalamone
    • RE: Problem using old indicator need help on start() vs on calculate()

      @xfire 0_1585705545778_9b025500-1e05-4533-b895-ca9a7b1bbc7c-image.png

      posted in Bug Reports
      B
      Bsalamone
    • RE: Problem using old indicator need help on start() vs on calculate()

      0_1585696251545_VWAP.mq4

      posted in Bug Reports
      B
      Bsalamone
    • RE: Problem using old indicator need help on start() vs on calculate()

      1_1585696232682_VWAP.mq4 0_1585696232681_VWAP.ex4

      posted in Bug Reports
      B
      Bsalamone
    • RE: Problem using old indicator need help on start() vs on calculate()

      //+------------------------------------------------------------------+
      //| VWAP.mq4 |
      //| mwfx108 |
      //| mwfx108@gmail.com |
      //| Like my stuff? Made some profits using it? |
      //| Donate ETH @ 0xeDC0D4Dd8abcB106FEdC17Ce07Cc68a6571a038e |
      //+------------------------------------------------------------------+
      #property copyright "mwfx108"
      #property link "mwfx108@gmail.com"
      #property version "1.00"
      #property strict
      #property indicator_buffers 1
      #property indicator_chart_window
      #property indicator_color1 Red
      //+------------------------------------------------------------------+
      //| Variables |
      //+------------------------------------------------------------------+
      double ExtBufferVWAP[];
      double __ohlcvTotal,
      __volumeTotal;
      datetime __sessionStartTime;

      //+------------------------------------------------------------------+
      //| Custom indicator initialization function |
      //+------------------------------------------------------------------+
      int OnInit()
      {
      //---

      __volumeTotal = 0;
      __ohlcvTotal = 0;
      __sessionStartTime = 0;

      IndicatorShortName( "VWAP" );
      IndicatorDigits( _Digits );

      //--- Drawing settings
      SetIndexStyle( 0, DRAW_LINE );

      //--- Indicator buffers mapping
      SetIndexBuffer( 0, ExtBufferVWAP );

      //---
      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[])
      {
      //---

      // An "Intraday" indicator makes no sense anymore above H1
      if ( Period() >= PERIOD_H4 )
      {
      return ( rates_total - 1 );
      }

      int startIndex = MathMax( 0, rates_total - prev_calculated - 1 );

      // Only calculate up until the previous bar. We don't want to calculate the current bar.
      if ( startIndex > 0 )
      {
      for ( int i = startIndex; i >= 1; i-- )
      {
      double
      ohlcAvg = ( open[ i ] + high[ i ] + low[ i ] + close[ i ] ) / 4,
      vol = ( double ) tick_volume[ i ];

           // Reset values when session changed
           if ( TimeDay( time[ i ] ) != TimeDay ( __sessionStartTime ) )
           {
              __sessionStartTime = time[ i ];
              __ohlcvTotal = 0;
              __volumeTotal = 0;
           }
              
           __ohlcvTotal += ohlcAvg * vol;
           __volumeTotal += vol;
           
           ExtBufferVWAP[ i ] = NormalizeDouble( __ohlcvTotal / __volumeTotal, _Digits );
        }
      

      }

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

      posted in Bug Reports
      B
      Bsalamone
    • RE: Problem using old indicator need help on start() vs on calculate()

      Important: Custom indicators used in any EA must be programmed in the new MQL4 language. The MQL4 language has changed significantly since build 600 at the beginning of 2014. Old, incompatible indicators include the functions init() and start(), whereas new indicators include the functions OnInit() and OnCalculate().

      posted in Bug Reports
      B
      Bsalamone
    • RE: Problem using old indicator need help on start() vs on calculate()

      It is not created, I don't have a VWOP indicator that is compatible with EA I do have a simple mt4 VWOP indicator that works fine on chart but not in EA, I have the script for that, I just don't know how to convert the old mt4 it is such a simple strategy but I just can't get this indicator in my EA, helpppppppppp thanks!!!

      this is the pine code from tradingview for vwop

      //@version=3
      study("VWAP", overlay=true)

      // There are five steps in calculating VWAP:
      //
      // 1. Calculate the Typical Price for the period. [(High + Low + Close)/3)]
      // 2. Multiply the Typical Price by the period Volume (Typical Price x Volume)
      // 3. Create a Cumulative Total of Typical Price. Cumulative(Typical Price x Volume)
      // 4. Create a Cumulative Total of Volume. Cumulative(Volume)
      // 5. Divide the Cumulative Totals.
      //
      // VWAP = Cumulative(Typical Price x Volume) / Cumulative(Volume)

      cumulativePeriod = input(14, "Period")

      typicalPrice = (high + low + close) / 3
      typicalPriceVolume = typicalPrice * volume
      cumulativeTypicalPriceVolume = sum(typicalPriceVolume, cumulativePeriod)
      cumulativeVolume = sum(volume, cumulativePeriod)
      vwapValue = cumulativeTypicalPriceVolume / cumulativeVolume

      plot(vwapValue)

      posted in Bug Reports
      B
      Bsalamone
    • RE: Simple moving average cross EA PLEASE HELP ME

      @l-andorrĂ  thank you!!

      posted in Questions & Answers
      B
      Bsalamone
    • RE: Problem using old indicator need help on start() vs on calculate()

      @0_1585684328143_28725702-f328-4c14-bf6a-d10464fefd86-image.png bsalamone https://fxdreema.com/forum/assets/uploads/files/1585682171025-ed66be7a-3bdf-4362-a4fe-7d4c2ee7e320-image.png

      posted in Bug Reports
      B
      Bsalamone
    • Problem using old indicator need help on start() vs on calculate()

      Please help, I have looked for hours on end trying to find a simple vwop indicator that is compatible with EA, the one I have and the only one I could find is old version meaning it uses on start() instead of on calculate () and the EA does not work at all, I am looking for some help, I want to make a crossover EA with the vwop and a simple moving average, or maybe someone can explain how to either convert a trading view indicator to mt4 for EA or provide me with a simple mt4 vwop, all of the ones I have found include bands and all sorts of stuff, I simply want a regular one I will include a screen shot from trading view, PLEASE HELP THANK YOU!!!!!

      Brian

      posted in Bug Reports
      B
      Bsalamone
    • RE: IN DESPERATE NEED OF SIMPLE VWOP INDICATOR THAT IS COMPATIBLE WITH EA

      0_1585682168228_ed66be7a-3bdf-4362-a4fe-7d4c2ee7e320-image.png

      posted in Questions & Answers
      B
      Bsalamone
    • IN DESPERATE NEED OF SIMPLE VWOP INDICATOR THAT IS COMPATIBLE WITH EA

      Please help, I have looked for hours on end trying to find a simple vwop indicator that is compatible with EA, the one I have and the only one I could find is old version meaning it uses on start() instead of on calculate () and the EA does not work at all, I am looking for some help, I want to make a crossover EA with the vwop and a simple moving average, or maybe someone can explain how to either convert a trading view indicator to mt4 for EA or provide me with a simple mt4 vwop, all of the ones I have found include bands and all sorts of stuff, I simply want a regular one I will include a screen shot from trading view, PLEASE HELP THANK YOU!!!!!

      Brian

      posted in Questions & Answers
      B
      Bsalamone
    • RE: Simple moving average cross EA PLEASE HELP ME

      I changed the candle to 1 in the condition and it got further, because before i made that change it crashed directly after the sell order was placed, but I am still having the same problem but I cant figure out specifically what to change to get this working properly, I appreciate the help!!! any ideas?? THANK YOU SO MUCH!!

      Brian

      posted in Questions & Answers
      B
      Bsalamone
    • 1
    • 2
    • 1 / 2