stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

Need some help with indicator and ea coding
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=766
Page 2 of 2
Author:  NeoTrader [ Tue Aug 14, 2012 4:48 pm ]
Post subject:  Re: Need some help with indicator and ea coding

Try this...

Code: Select all

double AccDigits = MarketInfo(Symbol(), MODE_DIGITS);          // changed symbol
                                                       // will have to test to see if it works
int fpc()                                              // used later down
{
  if (AccDigits == 4) return (1);                       // added a01
  if (AccDigits == 5) return (10);
  if (AccDigits == 6) return (100);                     // for future criminal adjustments
  if (AccDigits == 7) return (1000);                    // added s01 ^^^^^^^^^^^^^^^^^^^^^
  return (1); 
}

double PointEx()
{
  if (AccDigits == 4) return (1*Point);                 // added s01
  if (AccDigits == 5) return (10*Point);
  if (AccDigits == 6) return (100*Point);               // for future criminal adjustments
  if (AccDigits == 7) return (1000*Point);              // added s01 ^^^^^^^^^^^^^^^^^^^^^
  return (Point); 
}
happy trading,

NeoTrader
Author:  s01 [ Tue Aug 14, 2012 4:49 pm ]
Post subject:  Re: Need some help with indicator and ea coding


I'm at a loss. Sorry I couldn't help (and probably confused you more) ]
That would be hard to do ... lol

But thanks for giving it a try :)
Author:  NeoTrader [ Tue Aug 14, 2012 4:51 pm ]
Post subject:  Re: Need some help with indicator and ea coding

s01 wrote:That would be hard to do ... lol
Why? It is your codesnippet---only modified...
s01 wrote:But thanks for giving it a try :)
you're welcome

happy trading,

NeoTrader

-
Author:  s01 [ Tue Aug 14, 2012 5:24 pm ]
Post subject:  Re: Need some help with indicator and ea coding

NeoTrader wrote:
s01 wrote:That would be hard to do ... lol
Why? It is your codesnippet---only modified...
s01 wrote:But thanks for giving it a try :)
you're welcome

happy trading,

NeoTrader

-


Not you NEO, I was replying to the previous poster ... lol

But I think your code might have worked, I unhid the whole code and now it would seem that, I have to move some things around, but not getting the original errors. :)

Thanks again NEO, :)
Author:  NeoTrader [ Tue Aug 14, 2012 5:30 pm ]
Post subject:  Re: Need some help with indicator and ea coding

s01 wrote:Not you NEO, I was replying to the previous poster ... lol

But I think your code might have worked, I unhid the whole code and now it would seem that, I have to move some things around, but not getting the original errors. :)

Thanks again NEO, :)
you're welcome and good luck.. ;)

happy trading,

NeoTrader

-
All times are UTC Page 2 of 2