Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
- // © Maurizio-Ciullo
- // Strategia Della Quant Trader academy da testare e ottimizzare su altri sotostanti e
- //@version=5
- strategy("Bot BRKJPY GBP/JPY Forex Ver-5 Breakout 30M LONG E SHORT", overlay=true, margin_long=100, margin_short=100 )
- massimi = ta.highest(high[1], 50)
- minimi = ta.lowest(low[1], 50)
- plot(massimi)
- plot(minimi)
- // Con "GMT+2" Prendo L'orario Corrente E Non L'orario Della Borsa
- longCondition = close > massimi and hour(time, "GMT+2") > 13 and hour(time, "GMT+2") < 18
- if longCondition
- strategy.entry("long", strategy.long)
- strategy.exit("long", profit=2250, loss=600)
- shortCondition = close < minimi and hour(time, "GMT+2") > 13 and hour(time, "GMT+2") < 18
- if longCondition
- strategy.entry("short", strategy.long)
- strategy.exit("short", profit=2250, loss=600)
Add Comment
Please, Sign In to add comment