Attachments forums

List of attachments posted on this forum.


All files on forums: 163689

Re: BeatlemaniaSA's XU-Hybrid Trading System

global, Mon Feb 07, 2022 6:40 am

sal wrote: Mon Feb 07, 2022 4:19 am thanks for this update bro
for auto time frame , can i see in the settings to add?? where i can see this
When you open the indicator properties dialog box just click first Time frame option "Current Time frame" at the top of the Value column. Once you click it you will see a drop-down list of time frames. The last two options in that list are "Auto higher time frame1" and "Auto higher time frame2".

If you want different time frames than the default ones to be automatically displayed when you change time frames then you can just edit the code and change the time frames (_tf) after the equal signs (_tf=15 etc.) in the int timeFrameValue(int _tf, int Per) function from lines 644 to 665. Below is a copy of the relevant code within the indicator that you can change as you desire then recompile the indicator with MetaEditor.

Code: Select all

   if(_tf==-4) //Get the auto higher timeframe1
   {
      if(Per==1) _tf=5; // 1 minute, M1
      if(Per==5) _tf=15; // 5 minute, M5
      if(Per==15) _tf=60; // 15 minutes, M15
      if(Per==30) _tf=60;  // 30 minutes, M30
      if(Per==60) _tf=240; // 60 minutes, H1
      if(Per==240) _tf=1440; // 240 minutes, H4
      if(Per==1440) _tf=10080; // 1440 minutes, D1
      if(Per==10080) _tf=43200; // 10080 minutes, W1
      if(Per==43200) _tf=43200; // 43200 minutes, MN
   }
   if(_tf==-5) //Get the auto higher timeframe2
   {
      if(Per==1) _tf=15; // 1 minute, M1
      if(Per==5) _tf=60; // 5 minute, M5
      if(Per==15) _tf=240; // 15 minutes, M15
      if(Per==30) _tf=240;  // 30 minutes, M30
      if(Per==60) _tf=1440; // 60 minutes, H1
      if(Per==240) _tf=1440; // 240 minutes, H4
      if(Per==1440) _tf=10080; // 1440 minutes, D1
      if(Per==10080) _tf=43200; // 10080 minutes, W1
      if(Per==43200) _tf=43200; // 43200 minutes, MN
   }
All files in topic