very simple
if (BuyersTerritory!= 2147483647 && BuyersTerritory>0) Alert("BUY"); if ( SellersTerritory != 2147483647 && SellersTerritory >0) Alert("SELL");

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hey everyone, I'm fairly new to coding EA's and im just learning all of the workings of indicators and i've hit a roadblock with an indicator that i found and was tinkering with.. I was just hoping someone could point me in the right direction (been spinning my wheels for a couple days now).
All i'm trying to accomplish is to pass a local variable in a boolean form to an indicator buffer so that i can call it in my EA, all im trying to do is have it say if BuyersTerritory==True then only take buy trades & if SellersTerritory==True only take sell trades, but whenever i do it, if i even get a value it's always 0 or 2147483647.0
Any help is greatly appreciated!
-I attached a screenshot of the issue im having
The variables im trying to insert are on lines: 259,260,292,293 (i also tried to create a couple more buffers than the original code had, hoping that, that would work).
here's the indicator code: