Problem with Environment Variables.

 

Hi everyone,

I have been trying to solve this problem on my own but I just cant get it done.

I want to linkup MetaTrader4 and Ninjatrader so I can use my Ninjastrategy in MT4 because my Broker does not permit Ninjatrader. I programmed a toll for the Ninjatrader which writes the Orders into the Environment Variables. That all works fine. The troubles start when reading the Environment Variables form MT4. It seems like it just is not possible to do so. So I figured I use a dll to read out the Environment Variables and send them over to MT4 but I cant get my head around that.

I always get the Error 127 "cannot call function".

Has anyone any experience with Environment Variables and MT4? If so please post and help.

Or do you guys know an Expert that uses a dll which reads Environment Variables.

Thanks a lot!

 

Get a broker that uses Ninja

Reason: