top of page

Daily SP500 with MACD

  • Jun 21, 2022
  • 1 min read

Updated: Jun 15, 2023

13 lines of code for the SP500 index on the daily timeframe.



The code


entrycondition1 = MACD[12,26,9][0] < MACD[12,26,9][1] and MACD[12,26,9][1] < MACD[12,26,9][2] and MACD[12,26,9][2] < MACD[12,26,9][3] and MACD[12,26,9][3] < MACD[12,26,9][4]

entrycondition2 = MACD[12,26,9][0] < 0 and close[0] < close[1]

entrycondition3 = (close - low) / (high - low) < 0.13

IF entrycondition1 and entrycondition2 and entrycondition3 THEN
BUY 1 CONTRACTS AT MARKET
ENDIF

exitcodition = close[0] > high[1]

If LongOnMarket AND exitcodition THEN
SELL AT MARKET
ENDIF

24 Comments


Unknown member
5 days ago

Great video. Please send to evianlah@yahoo.com. Thanks a bunch!

I also click "Send me strategy" for "Break and Bounce" and "Touch and Turn" but it didn't send to my stated email. Can also send me those please!

Edited
Like

Unknown member
May 31

Great video. Please send to tigergeorge55@gmail.com

Like

Unknown member
May 23

great video, thank you for the free algo, please send to gjohncock22@gmail.com

Like

Unknown member
May 18

Thanks for sending the code for the free algo. My email: amirsahoo190@gmail.com


Like

Unknown member
May 11

Hi

Thank you your videos. It’s amazing

Kindly share buytodo.help@gmail.com

Like

Don't trade for 8 hours straight

seats available - 9 persons in waitlist

download.png

CFDs are complex instruments and come with a high risk of losing money rapidly due to leverage. On average 71% of retail investor accounts lose money when trading CFDs. Past performance is no guarantee of future results. You should consider whether you understand how CFDs work before starting.

Read full terms and conditions

ProRealTime™ is a trademark registered by the third-party entity ProRealTime SAS

We have no link with the ProRealTime™ entity that offers the ProRealTime™ trading software

Copyright ProRealAlgos 580648-4231
Harju maakond, Tallinn, Kesklinna linnaosa, Pille 13, 10173

bottom of page