The_Algo_Engineer

Trend Follower Intraday [ Adjustable TF ]

Trend Follower Intraday for 3 minute Time-Frame (Adjustable) , that has the time condition for Indian Markets as well.
Unlike the Free Scripts - Risk Management , Position Sizing , Partial Exit etc. are also included .
Send us a Message to know more about the strategy.
// ══════════════════════════════════════════════════════════════════════════ //

The Timing can be changed to fit other markets, scroll down to "TIME CONDITION" to know more.
The commission is also included in the strategy .

The basic idea is when ,

1) EMA1 crosses above EMA2 , is a Long condition.
2) EMA1 crosses below EMA2 , is a Short condition.
3) Green Section indicates Long position.
4) Red Section indicates Short position.
5) Allowed hours specifies the trade entry timing.
6) ATR STOP is the stop-loss value on chart , can be adjusted in INPUTS.
7) Target 1 is the 1st target value on chart , can be adjusted in INPUTS.
8) RISK is Maximum Risk per trade for the intraday trade can be changed .
9) Total Capital used can be adjusted under INPUTS.
10) ATR TRAIL is used for trailing after entry, as mentioned in the inputs below.
11) Check trades under the list of trades .
12) Trade only in liquid stocks .
13) Risk only 1-5% of total capital.
14) Inputs can be changed for better back-test results, but also manually check the trades before setting alerts
15) SQUARE OFF TIME - As you change the time frame , also change the square-off time to the candle's closing time.
Eg: For 3min Time-frame , Hour = 2Hrs | Minute = 57min
16) Strategy stops for the day if you have a loss .
17) COMMISSION value is set to 20Rs and SLIPPAGE value is set to 2 . Go to properties to change it .
*The input values and the results are mentioned under "BACKTEST RESULTS" below*

// ══════════════════════════════ //
// ————————> RISK MANAGEMENT <——————— //
// ══════════════════════════════ //
Risk management is done based on max loss per trade and can be adjusted in the INPUTS.

// ═══════════════════════════ //
// ————————> POSITION SIZE <——————— //
// ═══════════════════════════ //
Quantity of each trade is different based on the loss

// ═════════════════════════ //
// ————————> PROPERTIES <——————— //
// ═════════════════════════ //
COMMISSION , SLIPPAGE ,RECALCULATE is already mentioned in the code.
COMMISSION can be charges , based on the broker charges.

// ═══════════════════════════════//
// ————————> TIME CONDITION <————————— //
// ═══════════════════════════════//
The time can be changed in the INPUT.
The Indian Markets open at 9:15am and closes at 3:30pm.
The 'Allowed hours' under Inputs specifies the time at which Entries should happen .
"Close All" function closes all the trades before 3pm , at the open of the next candle.
To change the time to close all trades , check INPUT.
All open trades get closed by 3pm , because some brokers don't allow you to place fresh intraday orders after 3pm .

// ═══════════════════════════════════════════════ //
// ————————> BACKTEST RESULTS ( 123 CLOSED TRADES )<————————— //
// ═══════════════════════════════════════════════ //
INPUTS can be changed for better Back-Test results.
The strategy applied to JSWENERGY (3 min Time-Frame and with a capital of 3,00,000 ) gives us 81% profitability , as shown below
It was tested for a period a 6 months with a Profit Factor of 1.957 ,net Profit of 43,000Rs .
Sharpe Ratio = 0.745
Sortino Ratio = 2.091
No strategy in the world promises 100% profits in all market conditions , so always define your risk before trading.
Also check Back-Test results manually ,before setting Alerts
The Graph has a Linear Curve with Consistent Profits.

The INPUTS are as follows,

1) EMA1 ————————————————> 38
2) EMA2 ————————————————> 118
3) ALLOWED HRS ———————————> 9:35 TO 14:30
4) ATR STOP ——————————————> 3.2
5) RISK ——————————————————> 3000
6) ATR TRAIL ———————————————> 2.6
7) TARGET 1 ————————————————> 2.4
8) MAX POSITION VALUE ——————————> 3,00,000
8) MAX DRAWDOWN —————————————> 9,000
8) SQUARE-OFF ————————————————> 14:57

JSWENERGY

Apply it to your charts Now !
JSWENERGY
Send us a message for FREE TRIALS | Instant Access
Thank You ☺
Release Notes:
Now use the Strategy for all kinds on Markets , Selector Switch "ON FOR INDIAN MARKET TIMING | OFF FOR CRYPTO/FOREX MARKETS"
Tooltip updated ( 'i button' to know more about the Inputs )

// ══════════════════════════════════════════════════ //
// ————————> BACKTEST RESULTS ( BTCUSDT 105 CLOSED TRADES )<————————— //
// ══════════════════════════════════════════════════ //
INPUTS can be changed for better Back-Test results.
The strategy applied to BTCUSDT (15 min Time-Frame and with a capital of 3,00,000 ) gives us 80% profitability , as shown below
It was tested for a period a 6 months with a Profit Factor of 1.878 ,net Profit of 56,000USDT .
Sharpe Ratio = 0.741
Sortino Ratio = 2.309
No strategy in the world promises 100% profits in all market conditions , so always define your risk before trading.
Also check Back-Test results manually ,before setting Alerts
The Graph has a Linear Curve with Consistent Profits.

The INPUTS are as follows,

1) EMA1 ————————————————> 41
2) EMA2 ————————————————> 115
3) ALLOWED HRS ———————————> 8:00 TO 19:00
4) ATR STOP ——————————————> 3.5
5) RISK ——————————————————> 3500
6) ATR TRAIL ———————————————> 2.6
7) TARGET 1 ————————————————> 1.9
8) MAX POSITION VALUE ——————————> 3,00,000
9) MAX DRAWDOWN —————————————> 19,000
10) SELECTOR SWITCH - OFF

BTCUSDT

// ═════════════════════════════════════════════════════ //
// ————————> BACKTEST RESULTS ( JSWSTEEL - 124 CLOSED TRADES )<————————— //
// ═════════════════════════════════════════════════════ //
INPUTS can be changed for better Back-Test results.
The strategy applied to JSWSTEEL (3 min Time-Frame and with a capital of 3,00,000 ) gives us 81% profitability , as shown below
It was tested for a period a 6 months with a Profit Factor of 1.808 ,net Profit of 41,600Rs .
Sharpe Ratio = 0.803
Sortino Ratio = 5.604
No strategy in the world promises 100% profits in all market conditions , so always define your risk before trading.
Also check Back-Test results manually ,before setting Alerts
The Graph has a Linear Curve with Consistent Profits.

The INPUTS are as follows,

1) EMA1 ————————————————> 41
2) EMA2 ————————————————> 115
3) ALLOWED HRS ———————————> 9:35 TO 14:30
4) ATR STOP ——————————————> 3.5
5) RISK ——————————————————> 3500
6) ATR TRAIL ———————————————> 2.6
7) TARGET 1 ————————————————> 2.1
8) MAX POSITION VALUE ——————————> 3,00,000
9) MAX DRAWDOWN —————————————> 7,000
10) SELECTOR SWITCH -ON
11) SQUARE-OFF ————————————————> 14:57

JSWSTEEL

Apply it to your charts Now !

Send us a message for FREE TRIALS | Instant Access
Thank You ☺
Release Notes:
INPUTS UPDATED

JSW STEEL
LONG POSITION WIN TRADE

SHORT POSITION WIN TRADE

STOP-LOSS TRIGGERED

Apply it to your charts Now !

Send us a message for FREE TRIALS | Instant Access
Thank You ☺

Invite-only script

Access to this script is restricted to users authorized by the author and usually requires payment. You can add it to your favorites, but you will only be able to use it after requesting permission and obtaining it from its author. Contact The_Algo_Engineer for more information, or follow the author's instructions below.

TradingView does not suggest paying for a script and using it unless you 100% trust its author and understand how the script works. In many cases you can find a good open-source alternative for free in our Community Scripts.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Author's instructions

The author of this script can no longer grant access to it. Please don't request access.

Want to use this script on a chart?

Warning: please read before requesting access.