then it changed after 5pm and set Position==flat, Account pos= 1 and Synch=false. whenever false, next day ninjascript checks and longs(buys). I dont want this to long more than one position. So i want to check if the account with that instrument has any position.Currently, i am checking Market.position, which is not working.....
How do i find do this pseudo code logic in ninjascript.----Account.Instrument["ZN"].getposition() ===> here the instrument is ZN. Pls refer my screen enclosed. The last one on the list. Pls help me
Comment