Suggestive Algorithm for Trigger Price Suggestion

if selected_tradetype is BUY and

if selected_instrument_type is FUT 

then make a strealit slider with values of 0.5, 1, 1.5, 2, 2.5, 3, daylow 

now if it selects 0.5 it will multiply (100-0.5)/100 with selected_symbol_ltp and save it to suggested_limit_value
now if it selects 1 it will multiply (100-1)/100 with selected_symbol_ltp and save it to suggested_limit_value
now if it selects 1.5 it will multiply (100-1.5)/100 with selected_symbol_ltp and save it to suggested_limit_value
now if it selects 2 it will multiply (100-2)/100 with selected_symbol_ltp and save it to suggested_limit_value
now if it selects 2.5 it will multiply (100-2.5)/100 with selected_symbol_ltp and save it to suggested_limit_value
now if it selects 3 it will multiply (100-3)/100 with selected_symbol_ltp and save it to suggested_limit_value
if it selects daylow it will save  selected_symbol_ltp*2 to suggested_limit_value 


if selected_instrument_type is PE or CE 

then make a strealit slider with values of 20,30,40,50,60,70,80,100, daylow 

now do the same type of calculation on value suggested_limit_value 

if selected_tradetype is SELL and

if selected_instrument_type is FUT 

then make a strealit slider with values of 0.5, 1, 1.5, 2, 2.5, 3,  dayhigh 

now if it selects 0.5 it will multiply (100+0.5)/100 with selected_symbol_ltp and save it to suggested_limit_value
now if it selects 1 it will multiply (100+1)/100 with selected_symbol_ltp and save it to suggested_limit_value
now if it selects 1.5 it will multiply (100+1.5)/100 with selected_symbol_ltp and save it to suggested_limit_value
now if it selects 2 it will multiply (100+2)/100 with selected_symbol_ltp and save it to suggested_limit_value
now if it selects 2.5 it will multiply (100+2.5)/100 with selected_symbol_ltp and save it to suggested_limit_value
now if it selects 3 it will multiply (100+3)/100 with selected_symbol_ltp and save it to suggested_limit_value
if it selects dayhigh it will save selected_symbol_ltp*2  to suggested_limit_value 


if selected_instrument_type is PE or CE  

then make a strealit slider with values of 20,30,40,50,60,70,80,100, dayhigh 

now do the same type of calculation on value suggested_limit_value 

=============

As it is weirdly complex to keep in mind but easy to code up. Just keeping it here so that if some passerby can make better suggestion

https://app.tradepick.in/Order_System