Code: Select all
variable:amount;
amount=50: // 50 shares
if number_of_shares_sold_at_once > amount then
#return.
Code: Select all
variable:amount;
amount=50: // 50 shares
if number_of_shares_sold_at_once > amount then
#return.
does this only work if I have a broker account attached to multichart?From wiki :
MarketPosition_at_Broker_for_The_Strategy
Will will return '17' if the current position at the broker for the strategy is 17 contracts long.
Will return '-132' if the current position at the broker for the strategy is 132 contracts short.
Will return '0' if the current position at the broker for the strategy is flat.
Will return '0' if the Automated Trading Mode is not turned on.
With no broker, trydoes this only work if I have a broker account attached to multichart?From wiki :
MarketPosition_at_Broker_for_The_Strategy
Will will return '17' if the current position at the broker for the strategy is 17 contracts long.
Will return '-132' if the current position at the broker for the strategy is 132 contracts short.
Will return '0' if the current position at the broker for the strategy is flat.
Will return '0' if the Automated Trading Mode is not turned on.
It keeps returning 0.