*** THIS IS JUST AN EXAMPLE OF STRATEGY RISK MANAGEMENT CODE IMPLEMENTATION *** For my own future reference, and for anyone else who needs it. Pine script strategy code can be confusing and awkward, so I finally sat down and had a little think about it and put something together that actually works (i think...) Code is commented where I felt might be necessary...
Buy bullish engulfing above EMA 24 Sell bullish engulfing below EMA 24 Mercurius A.M.
*** USE AT YOUR OWN RISK *** Nothing is perfect, and all decisions by you are on your own head. And stuff. Description: It's RSI versus a Simple Moving Average.. Not sure it really needs much more description. Should not repaint - Automatically offsets by 1 bar if anything other than "open" selected as RSI source. ...sometimes smashing things...
Here is a EMA intraday strategy. very profitable on the GBPAUD 1M charts if you are watching very closely, working on coding a indicator for it
A rsi strategy that has potential to do over 700% annually on the EURUSD 1h
I recently posted a Moving Averge Crossover strategy for my Everyday project - a project I've given myself where I try to create one strategy everyday in between 15 minutes and 2 hours. In the comments of my last published idea, user SignalTradersUK was very kind and suggested I try the following in my next study: "i think your next study should be, to workout...
This is the second strategy for my Everyday project. Like I wrote the last time - my goal is to create a new strategy everyday for the rest of 2016 and post it here on TradingView. I'm a complete beginner so this is my way of learning about coding strategies. I'll give myself between 15 minutes and 2 hours to complete each creation. This is basically a...
The first strategy for my (also first) Everyday project. During the rest of 2016 I plan to create a new strategy everyday and I give myself between 15 minutes and 2 hours to complete the idea. The goal is to improve my knowledge of Pine Script, become a faster strategy coder, and experiment with different strategic trading ideas. I'm new to strategies and...
Goldfinger. He's the man, the man with the midas touch. A spider's touch. Such a cold finger. Beckons you to enter his web of sin But don't go in.
This is a general purpose very flexible program to test the effectiveness of HA bars. Please note that if you are charting at tradingview using Heikin-Ashi charting, your system will be trading fictitious prices even if you check the "use real prices" box. Thought you might like to know that before you lose all your money. This program performs the HA calcs...
Simple program to look for day of week or day of month patterns in chart data. All original work by Boffin Hollow Lab Author: Tarzan
Here we have a general purpose momentum based long and short flip flop with optional profit target and maximum loss. Program development: Boffin Hollow Lab Author: Tarzan at tradingview.com Release: Version 1.0 May 2016 Please Note: Past Performance is not necessarily indicative of future results
Uses two sets of MACD plus an RSI to either long or short. All three indicators trigger buy/sell as one (ie it's not 'IF MACD1 OR MACD2 OR RSI > 1 = buy", its more like "IF 1 AND 2 AND RSI=buy", all 3 match required for trigger) The MACD inputs should be tweaked depending on timeframe and what you are trading. If you are doing 1, 3, 5 min or real...
This long only strategy determines the price of the last fractal top and enters a trade when the price breaks above the last fractal top. The strategy also calculates the average price of the last fractal tops to get the trend direction. The strategy exits the long trade, when the average of the fractal tops is falling (when the trend is lower highs as measured by...
When 50DMA and 200DMA cross on PC, algo trades SPY accordingly
This is version 2 of my Forex Master algorithm originally posted here: BACKTEST CONDITIONS: Initial equity = $100,000 (no leverage) Order size = 100% of equity Pyramiding = disabled TRADING RULES: Long entry = EMA5(RSI20) cross> 50 Profit limit = 50 pips Stop loss = 50 pips Short entry = EMA5(RSI20) cross< 50 Profit limit = 50 pips Stop loss =...