From BetEngel forum:
I am trying to lay a favorite if it has less than 50% of the market volume. I can get it to work with an amount i.e.: £10000 etc but not on a % basis can anybody help with this, it would be appreciated.
I know it is done by using stored values but I have tried a lot of combinations with this and just can't get it to work.
If someone can give me a detailed or a copy of the way to do it I would be very grateful.
This is very simple bot trigger: SelectionVolumePercentageBotTrigger.fsx
If selection volume percentage is in allowed range the action bot trigger is executed on the selection defined by SortSelectionsBy and ExecuteOnSelection parameters.
As an extra feauture I have added code showing volume percentage of all active selections, lines from 34 to 38.