forex software

Create and Test Forex Strategies

forex software

Skip to forum content

Forex Software

Create and Test Forex Strategies

You are not logged in. Please login or register.


Forex Software → Help and Support → Invalid pointer access error

Pages 1

You must login or register to post a reply

RSS topic feed

Posts: 9

Topic: Invalid pointer access error

Hi, I am having a problem with any strategy I create to EA that it says "invalid pointer access in 'strat-name.mq4' (3013,19)

void Strategy::GetRequiredCharts(string &charts[])
  {
   ArrayResize(charts,1);
   charts[0]=GetSymbol()+","+DataPeriodToString(GetPeriod());

   for(int i=0; i<Slots(); i++)
     {
      if(!Slot[i].IndicatorPointer.IsAllowLTF)
         continue;
      if(!IsLongerTimeFrame(i))
         continue;
      string chart=GetSlotChart(i);
      if(!ArrayContainsString(charts,chart))
         ArrayAppendString(charts,chart);
     }
  }

It says the problem is this line:

     if(!Slot[i].IndicatorPointer.IsAllowLTF)

Is there a quick solution within EA code that I can fix? I am also trying to learn EA coding so I am using this as practice. Thank you.

Post's attachments

pivot point 2.81.mq4 247.34 kb, 2 downloads since 2017-01-11 

You don't have the permssions to download the attachments of this post.

Re: Invalid pointer access error

How does this relate to FSBPro?

My 'secret' goal is to push EA Studio until I can net 3000 pips per day....

Re: Invalid pointer access error

Blaiserboy wrote:

How does this relate to FSBPro?

They are compiled from fsb pro software.

Re: Invalid pointer access error

attach the fsbPro strategy so someone can have a look at it.

My 'secret' goal is to push EA Studio until I can net 3000 pips per day....

Re: Invalid pointer access error

That error message is from MT4......
Did you do any code changes before trying to execute the strategy?

I have a hunch that there is a difficulty with the file name.

You are the first to have this problem, I think, and thousands of people are using the software, That is what makes me wonder if you have changed the code

In any event attach the FSBPro strategy .xml so that Popov can put it on his machine to see the difficulty.

My 'secret' goal is to push EA Studio until I can net 3000 pips per day....

6 (edited by john.alucard 2017-01-11 11:34:57)

Re: Invalid pointer access error

Here is the XML. I made my changes, saved the XML in FSB, then exported as EA to MT4. This error shows up when trying to attach to a chart.

Thank you

Post's attachments

pivot point 2.81.xml 8.42 kb, 5 downloads since 2017-01-11 

You don't have the permssions to download the attachments of this post.

Re: Invalid pointer access error

Blaiserboy wrote:

That error message is from MT4......
Did you do any code changes before trying to execute the strategy?

I have a hunch that there is a difficulty with the file name.

You are the first to have this problem, I think, and thousands of people are using the software, That is what makes me wonder if you have changed the code

In any event attach the FSBPro strategy .xml so that Popov can put it on his machine to see the difficulty.

Just as a test, I have also tried to:
load a default strategy ("test trade")
clicked "export to MT4/MT5"
refreshed my list in MT4
tried to add it to the chart and get this error still:

2017.01.11 17:49:42.287    Expert Test Trade EURUSDpro,Daily: removed
2017.01.11 17:49:42.287    Test Trade EURUSDpro,Daily: uninit reason 8
2017.01.11 17:49:42.287    Test Trade EURUSDpro,Daily: not initialized
2017.01.11 17:49:42.287    Test Trade EURUSDpro,Daily: invalid pointer access in 'Test Trade.mq4' (2883,19)
2017.01.11 17:49:42.286    Test Trade EURUSDpro,Daily: Test Trade loaded.
2017.01.11 17:49:42.249    Test Trade EURUSDpro,Daily inputs: StrategyProperties__=------------; Entry_Amount=0.1; Maximum_Amount=1.0; Adding_Amount=0.1; Reducing_Amount=0.1; Stop_Loss=77705; Take_Profit=77706; Break_Even=77707; Martingale_Multiplier=77708.0; ExpertSettings__=------------; Expert_Magic=11152457; Protection_Min_Account=0; Protection_Max_StopLoss=0; Bar_Close_Advance=15; Write_Log_File=false; Order_Comment=; 
2017.01.11 17:49:41.311    Expert Test Trade EURUSDpro,Daily: loaded successfully

Re: Invalid pointer access error

Thanks for additional info

Popov will clarify as soon as he sees the post

My 'secret' goal is to push EA Studio until I can net 3000 pips per day....

Re: Invalid pointer access error

John,

You use an old FSB Pro version. Please download the newest one from our Download page.

Posts: 9

Pages 1

You must login or register to post a reply

Forex Software → Help and Support → Invalid pointer access error

Similar topics in this forum