Re: XARD - Simple Trend Following Trading System

183
Jagg wrote: Wed Apr 03, 2019 7:35 pm Thanks for the update! Again regarding DAX30 (CFD) here.... the spread, HiLo,... aren't correct afaik?
(Spread here is ~0.8/0.9 points, High to Low is ~150,....)

And showing POWERMETER on CFDs doesn't really make sense, do it?
jesus christ

Xard is giving this for free - how many people are requesting custom edits, custom colours, custom indies, custom display with commentary on how to use it?

If the base is currency then you would have to do all the decimal work to get custom market spread/hi lo, like indices going and add switches for currency meters where it isn't a currency market - give the guy a break.

Re: XARD - Simple Trend Following Trading System

184
Jagg wrote: Wed Apr 03, 2019 7:35 pm Thanks for the update! Again regarding DAX30 (CFD) here.... the spread, HiLo,... aren't correct afaik?
(Spread here is ~0.8/0.9 points, High to Low is ~150,....)

And showing POWERMETER on CFDs doesn't really make sense, do it?
Hi There, The high/low of 150 ish is the yesterday hilo blue lines marked yHigh & yLow.
The HiLo in the InfoBox is actually today's current HiLo which is actually 157

Just checked the Powermeter, it is spot on. Just go from 1hr to 5min to see confirmation

I will look at the spread again, probably just rounded off no doubt.
A lot of broker account plus offers 0.0Pip$ spreads for their retail customer base.
Xard777
These users thanked the author xard777 for the post:
braciola719
XARD: If Carlsberg made charts... Probably the best charts in the world

Re: XARD - Simple Trend Following Trading System

185
francisfinley stimpy wrote: Wed Apr 03, 2019 8:44 pm

jesus christ

Xard is giving this for free - how many people are requesting custom edits, custom colours, custom indies, custom display with commentary on how to use it?

If the base is currency then you would have to do all the decimal work to get custom market spread/hi lo, like indices going and add switches for currency meters where it isn't a currency market - give the guy a break.


looks like xard's great system has given many people a wake up call who were hibernating here for a while,

just like USD sell off.


Re: XARD - Simple Trend Following Trading System

187
Please calm down... I've informed xard about some "wrong formated" infos which he CAN (or not) change in one of his next versions.

(I would do it for myself which isn't possible because xard post only the ex4 files which are not editable - and this is his right so no complain about that)

The functions are all there to have it working for nearly all kinds of "instruments" (cfd, forex,...)

Code: Select all

if(MarketInfo(Symbol(),MODE_PROFITCALCMODE) > 0) {
....
(Profit calculation mode. 0 - Forex; 1 - CFD; 2 - Futures)

Code: Select all

double GetPipFactor(string symbolName)
{
   static bool brokerDigitsKnown=false;
   static int  brokerDigits=0;
 
   // We want the additional pip digits of the broker (only once)
   if(!brokerDigitsKnown)
   {  
      // Try to get the broker digits for plain EURUSD
      brokerDigits=(int)SymbolInfoInteger("EURUSD",SYMBOL_DIGITS)-4;
      
      // If plain EURUSD was found, we take that
      if(brokerDigits>=0)
         brokerDigitsKnown=true;
         
      // If plain EURUSD not found, we take the most precise of all symbols containing EURUSD 
      else
      {
         brokerDigits=0;
         
         // Cycle through all symbols
         for(int i=0; i<SymbolsTotal(false); i++) 
         {
            string symName=SymbolName(i,false);
            if(StringFind(symName,"EURUSD")>=0)
               brokerDigits=MathMax(brokerDigits,(int)SymbolInfoInteger(symName,SYMBOL_DIGITS)-4);
         }
         
         brokerDigitsKnown=true;
      }
   }

   // Now we can calculate the pip factor for the symbol
   double symbolDigits = (int) SymbolInfoInteger(symbolName,SYMBOL_DIGITS);
   double symbolFactor=MathPow(10,symbolDigits-brokerDigits);
   
   return(symbolFactor);
}

Re: XARD - Simple Trend Following Trading System

188
Jagg wrote: Wed Apr 03, 2019 9:14 pm Please calm down... I posting some "bugs" for xard777 which he CAN (or not) change in one of his next versions.

The functions are all there to have it working for nearly all kinds of "instruments" (cfd, forex,...)

Code: Select all

if(MarketInfo(Symbol(),MODE_PROFITCALCMODE) > 0) {
....
(Profit calculation mode. 0 - Forex; 1 - CFD; 2 - Futures)

Code: Select all

double GetPipFactor(string symbolName)
{
   static bool brokerDigitsKnown=false;
   static int  brokerDigits=0;
 
   // We want the additional pip digits of the broker (only once)
   if(!brokerDigitsKnown)
   {  
      // Try to get the broker digits for plain EURUSD
      brokerDigits=(int)SymbolInfoInteger("EURUSD",SYMBOL_DIGITS)-4;
      
      // If plain EURUSD was found, we take that
      if(brokerDigits>=0)
         brokerDigitsKnown=true;
         
      // If plain EURUSD not found, we take the most precise of all symbols containing EURUSD 
      else
      {
         brokerDigits=0;
         
         // Cycle through all symbols
         for(int i=0; i<SymbolsTotal(false); i++) 
         {
            string symName=SymbolName(i,false);
            if(StringFind(symName,"EURUSD")>=0)
               brokerDigits=MathMax(brokerDigits,(int)SymbolInfoInteger(symName,SYMBOL_DIGITS)-4);
         }
         
         brokerDigitsKnown=true;
      }
   }

   // Now we can calculate the pip factor for the symbol
   double symbolDigits = (int) SymbolInfoInteger(symbolName,SYMBOL_DIGITS);
   double symbolFactor=MathPow(10,symbolDigits-brokerDigits);
   
   return(symbolFactor);
}

well, given you are mr serene you can code it all up and post it under your own thread captain function.


Who is online

Users browsing this forum: Ahrefs [Bot], DVanAssen, friend4you, knglerxst, MarcoGee, Ruby [Bot], Yandex [Bot] and 70 guests