TradingView
UnknownUnicorn2151907
31 mai 2020 11:40

CoGrid Management 

US SPX 500OANDA

Description

This strategy uses grid levels determined by pivot points based on the selected time period.
It's useful for swing trading without leverage, spot trading or for Hold management.
If the price goes down we buy and if it continues to go down we keep buying improving the average price.
When the price rises above the average entry price, we sell and if it continues to rise, we continue to sell.
It works for any pair as long as Buys and Sells quantities are adjusted correctly.

In these times of great economic change, good luck to everyone 🍀

Notes de version

.

Notes de version

..

Notes de version

...

Notes de version

....
Commentaires
UnknownUnicorn2151907
Thanks a lot guys ... The idea of this script I think is quite good but it can always be improved ... To transform it into alerts you need to add something like this, apart from deleting some things:
// Buy Alerts alertcondition(fBuyCondition(1), title = "Buy Level 1", message = "Buy 1") alertcondition(fBuyCondition(2), title = "Buy Level 2", message = "Buy 2") alertcondition(fBuyCondition(3), title = "Buy Level 3", message = "Buy 3") alertcondition(fBuyCondition(4), title = "Buy Level 4", message = "Buy 4") alertcondition(fBuyCondition(5), title = "Buy Level 5", message = "Buy 5") alertcondition(fBuyCondition(6), title = "Buy Level 6", message = "Buy 6") alertcondition(fBuyCondition(7), title = "Buy Level 7", message = "Buy 7") alertcondition(fBuyCondition(8), title = "Buy Level 8", message = "Buy 8") alertcondition(fBuyCondition(9), title = "Buy Level 9", message = "Buy 9") alertcondition(fBuyCondition(10), title = "Buy Level 10", message = "Buy 10") alertcondition(fBuyCondition(11), title = "Buy Level 11", message = "Buy 11") alertcondition(fBuyCondition(12), title = "Buy Level 12", message = "Buy 12") alertcondition(fBuyCondition(13), title = "Buy Level 13", message = "Buy 13") alertcondition(fBuyCondition(14), title = "Buy Level 14", message = "Buy 14") alertcondition(fBuyCondition(15), title = "Buy Level 15", message = "Buy 15")

And same for Sells.
Why so many alerts? Well, with this script more than one alert can appear per bar and you can only have one alert per bar.
AaronPriest
Just this morning TradingView announced a new feature for generating alerts on a strategy too. I haven't looked into it much yet:
tradingview.com/blog/en/strategy-alerts-are-live-now-18770/
Evilswan
@XaviZ, great stuff man... I've been trying your script right now. Im a noob, can you please add a start and end backtest period. This is because it will always start in January 2019. I would want to test out in certain months to know the results.
kampfer87
@XaviZ, could you please explain what else you are deleting? simply adding this to the code does not work.
AaronPriest
Very intriguing! Can this be converted to a study with alerts?
Che_Trader
Excelent work, as allways!
MattFrederick
Excellent Analysis And very well explained..interesting things
harribatu
More than awesome. Thanks mann!
Ivansete88
Awesome script. Thanks for sharing it !
RafaelZioni
Cool. Look nice. Great work
Plus