Need some help with indicator and ea coding

User avatar
NeoTrader
Trader
Posts: 436
Joined: Wed Apr 04, 2012 2:52 pm
Location: small Village at Lake Chiemsee, Bavaria, Germany

Re: Need some help with indicator and ea coding

Post by NeoTrader »

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
User avatar
s01
Trader
Posts: 26
Joined: Mon Jul 30, 2012 3:22 pm
Location: Midwest, USA

Re: Need some help with indicator and ea coding

Post by s01 »


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 :)
There are no bad traders, just bad systems, or rules.
A Quote that I stold from someone else:
Better to wish you were in a trade than wish you were out of a trade
User avatar
NeoTrader
Trader
Posts: 436
Joined: Wed Apr 04, 2012 2:52 pm
Location: small Village at Lake Chiemsee, Bavaria, Germany

Re: Need some help with indicator and ea coding

Post by NeoTrader »

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

-
User avatar
s01
Trader
Posts: 26
Joined: Mon Jul 30, 2012 3:22 pm
Location: Midwest, USA

Re: Need some help with indicator and ea coding

Post by s01 »

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, :)
There are no bad traders, just bad systems, or rules.
A Quote that I stold from someone else:
Better to wish you were in a trade than wish you were out of a trade
User avatar
NeoTrader
Trader
Posts: 436
Joined: Wed Apr 04, 2012 2:52 pm
Location: small Village at Lake Chiemsee, Bavaria, Germany

Re: Need some help with indicator and ea coding

Post by NeoTrader »

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

-
Post Reply

Return to “Coders Hangout”