For Gold 3-15 min
For Gold 3-15 min
For Gold 3-15 min
0 at
https://mozilla.org/MPL/2.0/
// © QueenCryptoSignal
//@version=5
strategy('FOREX XAUUSD 3m | 400 - 3.3', overlay=true)
src = input(close, title='Source')
// SETTING TRADEPLAN //
lowentry = input.float(2.68, "LOW (PIPS)", group="Entry Settings")
tp1 = input.float(5.36, "TP1 (PIPS)", group="TP/SL Settings")
tp2 = input.float(8.04, "TP2 (PIPS)", group="TP/SL Settings")
tp3 = input.float(10.72, "TP3 (PIPS)", group="TP/SL Settings")
tp4 = input.float(13.4, "TP4 (PIPS)", group="TP/SL Settings")
tp5 = input.float(16.08, "TP5 (PIPS)", group="TP/SL Settings")
tp6 = input.float(21.44, "TP6 (PIPS)", group="TP/SL Settings")
tp7 = input.float(26.8, "TP7 (PIPS)", group="TP/SL Settings")
tp8 = input.float(32.16, "TP8 (PIPS)", group="TP/SL Settings")
tp9 = input.float(37.52, "TP9 (PIPS)", group="TP/SL Settings")
tp10 = input.float(42.88, "TP10 (PIPS)", group="TP/SL Settings")
sl = input.float(5.36, "Stoploss (PIPS)", group="TP/SL Settings")
open_price = math.round_to_mintick(open)
close_price = math.round_to_mintick(close)
if buySignalk
label.new(bar_index, low, text=indL+"\n"+buy_comment, yloc=yloc.belowbar,
color=color.green, style=label.style_label_up, size=size.small,
textcolor=color.white, textalign=text.align_left)
alert(indL+"\n"+buy_comment, alert.freq_once_per_bar_close)
strategy.entry("Buy", strategy.long)
strategy.exit("Take Profit 1", from_entry="Buy", limit=tp1_l, stop=sl_l)
strategy.exit("Take Profit 2", from_entry="Buy", limit=tp2_l, stop=sl_l)
strategy.exit("Take Profit 3", from_entry="Buy", limit=tp3_l, stop=sl_l)
strategy.exit("Take Profit 4", from_entry="Buy", limit=tp4_l, stop=sl_l)
strategy.exit("Take Profit 5", from_entry="Buy", limit=tp5_l, stop=sl_l)
strategy.exit("Take Profit 6", from_entry="Buy", limit=tp6_l, stop=sl_l)
strategy.exit("Take Profit 7", from_entry="Buy", limit=tp7_l, stop=sl_l)
strategy.exit("Take Profit 8", from_entry="Buy", limit=tp8_l, stop=sl_l)
strategy.exit("Take Profit 9", from_entry="Buy", limit=tp9_l, stop=sl_l)
strategy.exit("Take Profit 10", from_entry="Buy", limit=tp10_l, stop=sl_l)
if sellSignallk
label.new(bar_index, high, text=indS+"\n"+sell_comment, yloc=yloc.abovebar,
color=color.red, style=label.style_label_down, size=size.small,
textcolor=color.white, textalign=text.align_left)
alert(indS+"\n"+sell_comment, alert.freq_once_per_bar_close)
strategy.entry("Sell", strategy.short)
strategy.exit("Take Profit 1", from_entry="Sell", limit=tp1_s, stop=sl_s)
strategy.exit("Take Profit 2", from_entry="Sell", limit=tp2_s, stop=sl_s)
strategy.exit("Take Profit 3", from_entry="Sell", limit=tp3_s, stop=sl_s)
strategy.exit("Take Profit 4", from_entry="Sell", limit=tp4_s, stop=sl_s)
strategy.exit("Take Profit 5", from_entry="Sell", limit=tp5_s, stop=sl_s)
strategy.exit("Take Profit 6", from_entry="Sell", limit=tp6_s, stop=sl_s)
strategy.exit("Take Profit 7", from_entry="Sell", limit=tp7_s, stop=sl_s)
strategy.exit("Take Profit 8", from_entry="Sell", limit=tp8_s, stop=sl_s)
strategy.exit("Take Profit 9", from_entry="Sell", limit=tp9_s, stop=sl_s)
strategy.exit("Take Profit 10", from_entry="Sell", limit=tp10_s, stop=sl_s)