fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. rytucker2000
    R
    • Profile
    • Following 0
    • Followers 0
    • Topics 4
    • Posts 15
    • Best 0
    • Controversial 0
    • Groups 0

    rytucker2000

    @rytucker2000

    0
    Reputation
    771
    Profile views
    15
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    rytucker2000 Unfollow Follow

    Latest posts made by rytucker2000

    • RE: Need logic help

      Thanks for the reply,

      You are right I still don't understand,

      that code is only a sniped of a free EA I got... Don't know where...

      I figured out the rest of it, but that I just don't know, I thought I got it...

      This very basic EA is running but I want to use with something else...

      Here is the whole code... I just want to know, if it is possible, how to get The value of RSI9 and RSI45. I thought is was just the basic Moving average of the RSI, but I'm not getting the same results...

      extern int RSIPeriod=14;
      extern int Short_price_MA_periods=9;
      extern int Long_price_MA_periods=45;
      extern int Short_RSI_MA_periods=9;
      extern int Long_RSI_MA_periods=45;
      extern int Slippage=3;
      extern int pisto=0; //Stochastic Indicator period
      extern int pistok=5; // Stochastic Period(amount of bars) for the calculation of %K line
      extern int pistod=3; //Stochastic Averaging period for the calculation of %D line
      extern int istslow=3; //Stochastic Value of slowdown
      extern int pimacd=0; //Indicator period
      extern int fastpimacd=12; //Averaging period for calculation of a quick MA
      extern int slowpimacd=26; //Averaging period for calculation of a slow MA
      extern int signalpimacd=9; //Averaging period for calculation of a signal line
      extern int piwpr=0; //WPR Indicator period
      extern int piwprbar=14; //WPR Period (amount of bars) for indicator calculation
      extern int pidem=0; //Indicator period
      extern int pidemu=14; //Period of averaging for indicator calculation
      double Lots=1; // that mean 0.1 value if you want 1 lot type 10
      double  tp=17; // take profit
      double  sl=7777; // stop loss
      int start()
      {
         int arraysize=200;
         double RSI[];
         double RSI_SMA[];
         ArrayResize(RSI,arraysize);
         ArrayResize(RSI_SMA,arraysize);
         ArraySetAsSeries(RSI,true);
      
         for(int i3=arraysize-1;i3>=0;i3--)
            RSI[i3]=iRSI(NULL,0,RSIPeriod,PRICE_CLOSE,i3);
         for(i3=arraysize-1;i3>=0;i3--)
            RSI_SMA[i3]=iMAOnArray(RSI,0,Short_RSI_MA_periods,0,MODE_SMA,i3);
         double RSI9 =RSI_SMA[1];
      
         for(i3=arraysize-1;i3>=0;i3--)
            RSI[i3]=iRSI(NULL,0,RSIPeriod,PRICE_CLOSE,i3);
         for(i3=arraysize-1;i3>=0;i3--)
            RSI_SMA[i3]=iMAOnArray(RSI,0,Long_RSI_MA_periods,0,MODE_SMA,i3);
         double RSI45 =RSI_SMA[1];
         double Price45=iMA(NULL,0, Long_price_MA_periods ,0,MODE_LWMA,PRICE_CLOSE,1);
         double Price9 =iMA(NULL,0, Short_price_MA_periods,0,MODE_SMA,PRICE_CLOSE,1);
      
         bool Long=false;
         bool Short=false;
         bool Sideways=false;
         if(Price9>Price45 && RSI9>RSI45) Long=true;
         if(Price9<Price45 && RSI9<RSI45) Short=true;
         if(Price9>Price45 && RSI9<RSI45) Sideways=true;
         if(Price9<Price45 && RSI9>RSI45) Sideways=true;
         if(Long==true  && OrdersTotal()==0)
           {
           if(iStochastic(NULL,pisto,pistok,pistod,istslow,MODE_EMA,0,MODE_MAIN,1)<19&&iStochastic(NULL,pisto,pistok,pistod,istslow,MODE_EMA,0,MODE_MAIN,0)>=19)
               {
               if(iStochastic(NULL,pisto,pistok,pistod,istslow,MODE_EMA,0,MODE_MAIN,1)<iStochastic(NULL,pisto,pistok,pistod,istslow,MODE_EMA,0,MODE_SIGNAL,1)&&iStochastic(NULL,pisto,pistok,pistod,istslow,MODE_EMA,0,MODE_MAIN,0)>=iStochastic(NULL,pisto,pistok,pistod,istslow,MODE_EMA,0,MODE_SIGNAL,0))
                  {
                  if(iDeMarker(NULL,pidem,pidemu,1)<0.35&&iDeMarker(NULL,pidem,pidemu,0)>=0.35)                
                        {
                        if (iWPR(NULL,piwpr,piwprbar,1)<-81&&iWPR(NULL,piwpr,piwprbar,0)>=-81)
                           {OrderSend(Symbol(),OP_BUY,Lots/10,Ask,Slippage,Ask-sl*Point,Ask+tp*Point,"Piotrek Buy");}
                        }
                     
                  }
               }
           }
         if(Short==true && OrdersTotal()==0)
           {
           if(iStochastic(NULL,pisto,pistok,pistod,istslow,MODE_EMA,0,MODE_MAIN,1)>81&&iStochastic(NULL,pisto,pistok,pistod,istslow,MODE_EMA,0,MODE_MAIN,0)<=81)
               {
               if(iStochastic(NULL,pisto,pistok,pistod,istslow,MODE_EMA,0,MODE_MAIN,1)>iStochastic(NULL,pisto,pistok,pistod,istslow,MODE_EMA,0,MODE_SIGNAL,1)&&iStochastic(NULL,pisto,pistok,pistod,istslow,MODE_EMA,0,MODE_MAIN,0)<=iStochastic(NULL,pisto,pistok,pistod,istslow,MODE_EMA,0,MODE_SIGNAL,0))
                   {
                   if(iDeMarker(NULL,pidem,pidemu,1)>0.63&&iDeMarker(NULL,pidem,pidemu,0)<=0.63)   
                         {
                         if (iWPR(NULL,piwpr,piwprbar,1)>-19&&iWPR(NULL,piwpr,piwprbar,0)<=-19)
                           {OrderSend(Symbol(),OP_SELL,Lots/10,Bid,Slippage,Bid+sl*Point,Bid-tp*Point,"Piotrek Sell");}
                         }
                      
                   }
               }
           }
      }
      

      This is what I have...

      https://fxdreema.com/shared/TeUXByGie

      posted in Questions & Answers
      R
      rytucker2000
    • RE: Page keeps scroling down till you end the Internet Explorer tab with task manager

      Okey thanks. will use Chrome then 🙂

      posted in Bug Reports
      R
      rytucker2000
    • Page keeps scroling down till you end the Internet Explorer tab with task manager

      HI FxDreema,

      Thanks for the awesome programme.

      When I open a blocks properties and move it down the page and the page begins to scroll down the keep the block properties in viewing, the page keeps scroling down till you end the Internet Explorer tab with task manager.

      It happens every time.

      posted in Bug Reports
      R
      rytucker2000
    • RE: Trailing stop as a % of the initial stop-loss

      I got it working like this...

      Trailing stop, step and start is the same as initial stoploss with formula block to change it.

      as long as there is one trade going it keeps the initial stoploss value.

      https://fxdreema.com/shared/srf7L20Ac

      posted in Questions & Answers
      R
      rytucker2000
    • Need logic help

      Can someone please tell me how to put this into FxDreema.

      I have my custom RSI MA indicator. I just don't understand the logic behind this...

      extern int RSIPeriod=14;
      extern int Short_RSI_MA_periods=9;
      extern int Long_RSI_MA_periods=45;
      
      int arraysize=200;
         double RSI[];
         double RSI_SMA[];
         ArrayResize(RSI,arraysize);
         ArrayResize(RSI_SMA,arraysize);
         ArraySetAsSeries(RSI,true);
      
         for(int i3=arraysize-1;i3>=0;i3--)
            RSI[i3]=iRSI(NULL,0,RSIPeriod,PRICE_CLOSE,i3);
         for(i3=arraysize-1;i3>=0;i3--)
            RSI_SMA[i3]=iMAOnArray(RSI,0,Short_RSI_MA_periods,0,MODE_SMA,i3);
         double RSI9 =RSI_SMA[1];
      
         for(i3=arraysize-1;i3>=0;i3--)
            RSI[i3]=iRSI(NULL,0,RSIPeriod,PRICE_CLOSE,i3);
         for(i3=arraysize-1;i3>=0;i3--)
            RSI_SMA[i3]=iMAOnArray(RSI,0,Long_RSI_MA_periods,0,MODE_SMA,i3);
         double RSI45 =RSI_SMA[1];
      
      f(RSI9>RSI45) Long=true;
      if(RSI9<RSI45) Short=true;
      

      I think RSI9 is basically the RSI MA 9 line
      and RSI45 is RSI MA 45 line

      so if RSI9>RSI45 then go long and vice versa. Is it that simple?

      Is the i3 the candle ID?
      and what is the arraysize and Arrayresize and ArraySetSeries all about?

      posted in Questions & Answers
      R
      rytucker2000
    • RE: Trailing stop as a % of the initial stop-loss

      Does anyone have another suggestion?

      posted in Questions & Answers
      R
      rytucker2000
    • RE: Trailing stop as a % of the initial stop-loss

      thanks anse33, but unfortunately it does not work

      posted in Questions & Answers
      R
      rytucker2000
    • Trailing stop as a % of the initial stop-loss

      Hi Dreema,

      I need advice...

      When conditions are met MT4 gives me a notification, I go on the chart (M5 to H4) and set 2 lines: one to take the trade and one for the stop loss.

      When price hits the buy/sell line, 2 orders are taken:

      the difference between the 2 lines is the stoploss.

      The volume size = stoploss = 1% of balance

      and the TP = 2 times the stoploss for order 1
      and TP = 5 times the stoploss for order 2

      and the lines are deleted.

      this I figured out but the next I'm struggling with....

      I can't use the normal pips because its not going to work the same in a M5 and H4 chart, so I need it to be a % the Stoploss

      I want the Trailing start, stop and step to be a % of the initial SL and it can be the same for the 2 orders.

      I tried a lot of stuff - the closest I got was -
      Trailing stop is...
      Custom (pips)
      (in loop) Trade/Order in Loop
      Volume size (lots)
      Initial volume
      Adjust *20

      Is it possible? What can I do?

      https://fxdreema.com/shared/amozKvclc

      posted in Questions & Answers
      R
      rytucker2000
    • RE: Trailing Stop and Breakeven not working

      thanks roar

      it works now.... pips distance on chart was 188 that's actually 18 pips 🙈

      posted in Questions & Answers
      R
      rytucker2000
    • RE: Trailing Stop and Breakeven not working

      The first TP is 200% of the SL (witch is about 188pips) and the second TP is 500% of SL

      posted in Questions & Answers
      R
      rytucker2000