# Triple moving average crossover

## Triple Moving Average Crossover Trading Strategy

155 views | 25 Aug. 2018

Triple Moving Average

Triple Moving Average Crossover Trading Strategy

# Triple moving average crossover

## Algorithmic Trading Strategy Using Three Moving Averages & Python

19 611 views | 11 Jul. 2020

#Python #Stocks

Algorithmic Trading Strategy Using Three Moving Averages & Python

⭐Get the code and data sets by becoming a supporter on Patreon:

https://www.patreon.com/computerscience

⭐Website:

http://everythingcomputerscience.com/

⭐Support the channel on Patreon:

► https://www.patreon.com/computerscience

► Python (Hands-Machine-Learning-Scikit-Learn-TensorFlow):

► Learning Python:

https://amzn.to/3dQGrEB

https://amzn.to/3fUxDiO

► C-Programming :

https://amzn.to/2X0N6Wa

https://amzn.to/2LxMlhT

prplute5556m

for me is error in Upload widget is only available when the cell has been executed in the current browser session. Please rerun this cell to enable.

CL Kung

Why don't u use Ta-lib ?

Kundan Kumar

Anthony Chung

The first sell marker price was about \$ 315 ?? . Python Plot cant show the precise value when the arrow pointed at the curve. On the other side, Excel can show the value if the arrow was pointed at the curve .

robin vermillion

good video. however im going to do more experimenting with the buy and sell conditions. they work but im betting it can be improved to get better buy and sell signals

robin vermillion

papajim

Thanks for all recent videos about various strategies!
Now i think we need the next step, namely how to calculate the winnings and losses after plotting the strategy.

Ares

This channel is gold. Thx a ton.

Amol Khaire

how to change file for another stock

R Rahl

Thank you mate!

dominic hindes

where in the world u from @ Computer Science

Joycelynn Nelson

Hi CS! How did you create the cvs file and save it to your computer?

la_ z0n

Help Please, this code not work for me:

---------------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-25-5f2589dcc654> in <module>()
3 frames
/usr/local/lib/python3.6/dist-packages/pandas/core/internals/construction.py in sanitize_index(data, index, copy)
609
610 if len(data) != len(index):
--> 611 raise ValueError("Length of values does not match length of index")
612
613 if isinstance(data, ABCIndexClass) and not copy:
ValueError: Length of values does not match length of index

Torstein Løvbrøtte

where do you get the datasets with stockprices?

U-n_k.n spuirp

Tips : you can use "command"+"D"' to duplicate the line or for multiple line instead of copy past.
can please someone help me with this Error knowing that i import stream data using this

*df = web.DataReader('AAPL', data_source='yahoo', start=('2020-01-01'), end=(datetime.now()))*

Traceback (most recent call last):
File "/Users/--/Desktop/Language/python/___Project4/Ema's.py", line 80, in <module>

File "/Users/--/Desktop/Language/python/___Project4/Ema's.py", line 63, in buy_sell_function

sell_list.append(['Close'][i])

IndexError: list index out of range

Влад Кочетов

Hi, I made a similar program. You can use its details for convenience in the following projects.

Leonhard Liu

it seems you are getting your signals from historical data. what is the sense of that? there is no predictive power whatsoever or am I missing something fundamental?

mohamed sumare

i need strategy like this with stop loss and take profit added to the algo

Philippe Colin

...and if granny had some I would call her grand'pa

Geronimo Albornoz

Mate, I love your videos. I am learning so much and your teaching style is awesome. Said this, Can you check the function definition?I think the logic could bee wrong (buying when the data value is under the EMAS) . Check your other video about MA https://www.youtube.com/watch?v=SEQbb8w7VTw&t=973s

Thank you for you work!

Kazim Raza Talpur

Thank you so much and well explained, can't wait to see yours upcoming tutorial videos.

Aaren San

Thank you, sadly I get this error and I don't know what it means:
ConversionError: Failed to convert value(s) to axis units: masked_array(data=[--, --, --, ..., --, --, --],
mask=[ True, True, True, ..., True, True, True],
fill_value=1e+20,
dtype=float64)

<Figure size 878.4x324 with 1 Axes>

Slawomir Gontarek

hello, You should also work on real time frames, e.g. 15 minutes, 30, 1h, 4h, and 1 Day. This will allow you to get closer to real tensions and their analysis.

Raymond

"how to make a graph"

Really nice content! This is what I’m looking for. Good for beginners! Thanks bro!

Raghav Swagger

is there any way you can get the data without importing an excel sheet?

Sushmita Bhor

thank you

Abhigyaan Rishee

very nice video, learned a lot from you

Seeking Truth

Excellent video, can you also make a video as an add on to this video to calculate the portfolio based on long and short position and also set up a n alert to notify about buyl and sell. It will be a good addition to already great content that you are uploading on this channel everyday!

Paul Mitchell

Great example of what python CAN be used for and very nice detailed lesson ... however please don't bother going this route for actual trading ... use mql4 or mql5 on the MetaTrader platform which will give you APIs for calculating MAs and various other things PLUS you'll have access to live market data and years of historical data for testing your strategy ... this is a computer science channel not a trading channel ... but great example nonetheless ?

munez hans

Thank u

Oskar Oskarowski

Im not familiar with this channel. Any proof of this strategies working or whats the point. Im sorry im new to that.

Slawomir Gontarek

Hello, Thanks for the good video. You should confirm the EMA input signal additionally, eg MACD. This can eliminate a large number of missed inputs.
On entry, set STOP LOSS to the previous minimum (buy) and previous maximum (sell). This way, you will evaluate the profitability of all entries (buy and sell).

great lesson although could you though calculate the profit and loss I have tried running through it with a loop and a struggling to null values.

A L

what does the index 0 and 1 mean here?
And I tried to put 2, why does it gives me a traceback?

gooddude9211

Thank you and nicely explained

Tex Willer

Excellent Work!!.. and you need to add the details about those all lines in the chart man.. the output in the chart is not categorized.. which is price line and which all are the EMA lines.. anyhow great work

Raj : The future is what we make it !

9:40
Its Showed me an error and I don't know how to fix it here is the code :

#Calculate the three moving averages
#Calculate the short/ fast exponential moving average
ShortEMA = df.Close.ewm(span=5, adjust = False).mean()
#Calculate the Middle/Medium exponential moving average
MiddleEMA = df.Close.ewm(span=21, adjust = False).mean()
#Calculate the long/slow exponential moving average
LongEMA = df.Close.ewm(span=63, adjust = False).mean()

Tyler Condiff

In the beginning you pull the TSLA.csv how did you get that on your computer?

# Triple moving average crossover

## Triple moving average - 100% Profitable - सबसे आसान और अच्छा ! - Nifty, nse,bse

23 173 views | 10 Jul. 2018

▶ OPEN ZERODHA ACCOUNT

▶ OPEN ZERODHA ACCOUNT AND GET FREE INTRADAY TRADING COURSE(12 HOURS) - https://zerodha.com/open-account?c=ZMPLZW

▶ WHATSPP FOR DETAILS: https://api.whatsapp.com/send?phone=919667849397

▶ FREE TECHNICAL ANALYSIS COURSE

▶ OPEN FREE TRADING ACCOUNT IN ANGEL BROKING

http://tinyurl.com/ya6c7lpc

▶ OPEN FREE TRADING ACCOUNT IN 5 PAISA

https://www.5paisa.com/landing/partners-elite?rcode=NTIxMzEyNjA

▶ OPEN TRADING ACCOUNT IN FYERS

http://partners.fyers.in/AP0244

https://t.me/tradinglab In this video, I have explained Triple moving average for chart analysis and finding the Bullish or Bearish stocks. This combination uses short term, medium term and long term moving average for chart analysis.

FOR OPENING ACCOUNT IN ZERODHA LINK BELOW:

https://zerodha.com/open-account?c=RT0688

SHARE, SUPPORT, SUBSRCIBE!!!

52 week high low trading strategy - Intraday Trading(इंट्राडे ट्रेडिंग ) - Nifty, NSE, BSE - हिंदी

https://youtu.be/-gIblUR3bOQ

Best (इंट्राडे ट्रेडिंग स्टॉक) - Intraday trading stock (NSE/Nifty) in 5 min? - हिंदी में

https://youtu.be/i_-w3_Bb3JQ

Vijay Vishwanath

Nice???????

Praveen Kumar Kumawat

very much effective....Thanks

View stock Market

Sir crude or mcx me bhi vedio bno pllz

Ankit ji

Tu garibo ka loss karyega kisi din..

Sohini Bhamani

boss your every video deserves like... thank you for sharing your valuable knowledge

Manish Shrivastava

Running market aisa kuch nahi hota jaisa aap bata rahe ho. Aapke anusaar chalne se nuksaan aur jaayega. Isse achcha to 10, 20 , 30 vidhya moving average + supertrend hain

FX Mantra

dear u are sooo innocent and good person very understanding teaching keepit upbro

Sandip Shah

Sir.. I watch your video regularly. I want to learn about multiple timeframe strategy and how to plot in chart. It will be very thankfully if you share video. Now a days Trand Trading Karan tool is used as price action tool. I want to know how it is ploted in chart.
Thank you.

dharmesh nakrani

Excellent...

prakash swain

Plz next video soon

bharti porwal

sir kuch gann pe bhi video banaye pls !!!!!!!!!!!!!!!!!!1

Kuch kamate ho bhi ya sirf dusro ke video ka content copy karte , jhunjhunwala ji aapka mobil no# maang rahe the de du kya.koi problem toh nahi hai,

sourav kumar

thank u sir...SIR, price volume strategy pe or videos bnaiye...or....nifty ki trend pta krne ki koi strategy btaye

Please make more and more and more and more and more and more and more and more and more videos on moving averages I love ema's

I use 5min chart and I use 10 21 34 100 for intraday

I take entry when it's separated order wise

prakash swain

85% kam karta hai,exciellent

Ashish Asodariya

Good sir i am waiting screener video please

Chinmoy Banerjee

Excelent video guru. Please make a video on direction and how to entry exite of a consolidation breakout. Thanks in advance.

HARPREET

panic stock k koe charting screen er create kara advance label ka

Deepak Korgaonkar

Make video on banknifty option for beginners

A J

Telegram ma calls, kanjusu ki tarah dete ha aap....

Versatainment

Can i use it in forex ?

I use Time series moving average , hull moving average along with TEMA and Donchian Channel indicator

live trade kr ke dikao is strategy se aap