Hi I need some complex help here, As you can see from my algo, i have a few parameters that i can input for backtesting. The maximum option price is basically the maximum pricing on the option that i'd like to buy. What i want to do is to incorporate calculating the premiums of the options based on the paramenters i've set (i.e expiry, volatility at 20 percent and riskfree at 1.5%) is there a way to calculate the RT options premium and let the algo use that as the maximum option price. 

Author