Attached is a pine script developed by not me and also what the input setting screen should look like when finsihed. I would :
1: like it changed to a strategy
2: add date range in settings for :From day, month, year and to day month year, so i can specify start and end date of back test.
3. Add in extra position close option of Take Profit points, Stop loss points and trailing stop loss points. using code similar to this
// === STRATEGY RELATED INPUTS ===
// the risk management inputs
inpTakeProfit = input(defval = 2350, title = "Take Profit Points", minval = 0)
inpStopLoss = input(defval = 0, title = "Stop Loss Points", minval = 0)
inpTrailStop = input(defval = 660, title = "Trailing Stop Loss Points", minval = 0)
// === RISK MANAGEMENT VALUE PREP ===
// if an input is less than 1, assuming not wanted so we assign 'na' value to disable it.
useTakeProfit = inpTakeProfit >= 1 ? inpTakeProfit : na
useStopLoss = inpStopLoss >= 1 ? inpStopLoss : na
useTrailStop = inpTrailStop >= 1 ? inpTrailStop : na
Hi, I'm a software developer with focus on metatrader platform. I've got many years experience both in trading and coding. Programming languages - MQL4/5, AFL, PineScript.
10 freelancers are bidding on average £183 for this job
work can be done just need a good description of concept anything in pine can be coded i understood you concept ii can code it rest we can discuss in chat