Coding HELP!!!!

Ask general questions about the software
Message
Author
jayku161
Posts: 3
Joined: Sat Oct 04, 2014 5:15 am

Coding HELP!!!!

#1 Postby jayku161 » Sat Oct 04, 2014 5:18 am

Hello,

I would like to translate the MQL4 code to FT2 c++ Format

Code: Select all

int start() {
   int Li_4 = IndicatorCounted();
   if (Li_4 > 0) Li_4--;
   int Li_0 = Bars - Li_4;
   double ima_8 = 0;
   double ima_16 = 0;
   double ibands_24 = 0;
   double ibands_32 = 0;
   for (int Li_40 = 0; Li_40 < Li_0; Li_40++) {
      ima_8 = iMA(Symbol(), Period(), MAPeriod, 0, MAMethod, PRICE_CLOSE, Li_40);
      ima_16 = iMA(Symbol(), Period(), 21, 0, MODE_SMA, PRICE_CLOSE, Li_40);
      ibands_24 = iBands(Symbol(), Period(), BBPeriod, BBDeviation, BBShift, PRICE_CLOSE, MODE_UPPER, Li_40);
      ibands_32 = iBands(Symbol(), Period(), BBPeriod, BBDeviation, BBShift, PRICE_CLOSE, MODE_LOWER, Li_40);
      G_ibuf_116[Li_40] = MathMax(ibands_24, MathMax(ima_8, ima_16));
      G_ibuf_120[Li_40] = MathMin(ibands_32, MathMin(ima_8, ima_16));
      if (ima_8 > ima_16) {
         G_ibuf_100[Li_40] = MathMax(ibands_24, MathMax(ima_8, ima_16));
         G_ibuf_104[Li_40] = MathMin(ima_8, ima_16);
      } else {
         G_ibuf_108[Li_40] = MathMax(ibands_24, MathMax(ima_8, ima_16));
         G_ibuf_112[Li_40] = MathMin(ima_8, ima_16);
      }
   }
   return (0);
}


Thanks in advance!

jayku161
Posts: 3
Joined: Sat Oct 04, 2014 5:15 am

Re: Coding HELP!!!!

#2 Postby jayku161 » Mon Oct 06, 2014 2:23 am

is there anyone to help me ???

FX Helper
Posts: 1479
Joined: Mon Apr 01, 2013 3:55 am

Re: Coding HELP!!!!

#3 Postby FX Helper » Mon Oct 06, 2014 9:14 am

Hello,

You can contact with our programmer by email services@forextester.com
He can help you with this issue.

jayku161
Posts: 3
Joined: Sat Oct 04, 2014 5:15 am

Re: Coding HELP!!!!

#4 Postby jayku161 » Thu Oct 16, 2014 7:20 am

He is asking money for converting

if you convert this and show it would be of great help and knowledge for customers


Return to “General Questions about FT”

Who is online

Users browsing this forum: No registered users and 22 guests