I've been trying to put a stop loss in the High or Low of the last second bar after I open a position but in this example the only way to close it, is with the opposite action. Does anyone know how to put a stop loss and order with just stop loss and close when there is a bullish or bearish engulfing bar?
some simple functions to handle account margin call / trailling stop for account.
This famous moving average strategy is very easy to follow to decide when to buy (go long) and when to take profit. The strategy goes long when the faster SMA 50 (the simple moving average of the last 50 bars) crosses above the slower SMA 200. Orders are closed when the SMA 50 crosses below the SMA 200. This simple strategy does not have any other stop loss or...
My beautiful traders, how is everyone doing? This indicator I built detects trends, I haven't seen any repaints, I only had 3 minor ones. It is still on BETA version. To all new traders, and busy traders I will be posting one that you can set alerts. Please look under my profile or type " K.M Trend Alerts (BETA 1.2) " . I ask for everyone to try this script...
This strategy is as simple as possible: Every Tuesday a new long trade is opened, when Monday (yesterday) closed higher than it opened the week. The strategy closes all orders when the next close is larger than the open. This strategy does not have any other stop loss or take profit money management logic and is therefore VERY risky, because it always waits to...
EXPERIMENTAL: WARNING: Martingale is subject to HUGE drawdown spikes, use at your own risk! updated function to also double(aply multiplier) on even trades, example with a MA's crossover.
EXPERIMENTAL: WARNING:Martingale is susceptible to huge drawdown spikes, use at your own risk. simple functions for martingale wins and losses, multiplier can be adjusted manually to increase/decrease performance/drawdown.
Buy or sell candle patterns below or above MA EMA_for_1D-EMA to use for 1D chart Period_- highest/lowest days to put SL Mercurius.a.m Mercurius.a.m@gmail.com
*** THIS IS JUST AN EXAMPLE OF STRATEGY TIME LIMITING CODE IMPLEMENTATION *** This is a follow up to my example for risk management implementation here: Code remains mostly unchanged, but now includes a time limiting implementation. Relevant code blocks for the time factor are preceded with a comment stating: *** FOCUS OF EXAMPLE *** Cheers!
*** 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...
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
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...
This is a modification of MOVINGAVG CROSS with different inputs of bar lengths that work with a great average percentage with not much drawdown. I ran the strategy tester with GBPUSD on 1 hour time frame.
You must be using the renko chart with traditional settings with the block size set at .0001. This can be done by going to settings. Style at the bottom should be changed from ATR to traditional. The set the block size as .0001.
Hello Traders and coders, Here is a fundamental version of a moving average cross trading strategy that works on 1H and 4H timeframes. It's very simple and would be well paired with proper technical analysis and risk management. I am looking to use this to alert me of potential setups. I could not get the alertcondition function to work properly. If anyone can...
Comparing daily close prices as a strategy. This strategy is equal to the very popular "ANN Strategy" coded by sirolf2009(1) which calculates the percentage difference of the daily close price, but this bar-bone version works completely without his Artificial Neural Network (ANN) part. Main difference besides stripping out the ANN is that my version uses...
EXPERIMENTAL: Double EMA RSI Strategy. Optional: N max orders per day, %equity trade size, Time session constraints, TP, SL, Trailing.