help needed for a buy/sell script

 

hi,

i have a script which sends a buy-order when dropping into the chart. it uses a simple money management and just needs the %-risk and the stoploss.

my problem is that i want a window to appear when i drop the script into the chart and there i want to set the stoploss. at the moment i have many scripts like this with a 10 pip-sl, 15, pip-sl, 20 pip-sl etc... but i would like to have just one where i just set my stoploss when dropping it into the chart.

that was the first question. the last is if someone can tell me how to place a stoploss automatically at the low of the last 10 bars. i tried it with lowest(low[...) but it did not work..

thank you all for your help!!

Files:
10_buy.mq4  1 kb
 

1)

#property show_inputs
extern int SL = 10;

2)

it's: Low[iLowest()]

& not lowest(low[...)

 
great, thank you !!