Can i store the current price in a variable using only strategy builder?
Let me explain : I would like to have a variable let's say : double PriceWhenIStartTheStrategy = TakeTheCurrentPriceAndPutItInThisVariable(method that returns a double i guess). I would like this variable to execute only once when i start the strategy , then in conditions i want to put : if PriceWhenIStartTheStrategy < GetTheCurrentPrice wich it will be true if the price goes up go long .
I am thinking this is not possible with strategy builder , because i cannot create a variable double which takes a method that gets the current price and returns a double. Maybe in the next version you will allow that in strategy builder. .
If i have to code it where does my variable goes ? before the on stateChange() ?
Can i ask my 999 questions that i have left inside this topic or i have to create one for every question?
I dont have a strategy in mind i am just trying to understand this klingonian language called ninjascript. Try to answer the question assuming that i am stupid.
Comment