NexusFi: Find Your Edge


Home Menu

 





MACD Strategy HELP!


Discussion in TradeStation

Updated
      Top Posters
    1. looks_one Saraf64 with 11 posts (0 thanks)
    2. looks_two ABCTG with 8 posts (1 thanks)
    3. looks_3 ezrollin with 2 posts (0 thanks)
    4. looks_4 NW27 with 1 posts (1 thanks)
    1. trending_up 17,814 views
    2. thumb_up 3 thanks given
    3. group 6 followers
    1. forum 22 posts
    2. attach_file 1 attachments




 
Search this Thread
  #21 (permalink)
Saraf64
Los Angeles, CA, USA
 
Posts: 14 since Mar 2014
Thanks Given: 3
Thanks Received: 0


malibu View Post
Exactly this

Thanks Malibu. I started doing exactly that and after a lot of reading a online search I figured out a way to do it, but I found a bug or two (minor issue I hope) and then I got carpal tunnel

Thank you for the feedback

Saraf64


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Trump Truth Social Fires Hormuz From 10% to 59% -- Arsen …
Prediction Markets & Event Contracts
Fabrication or Framework? Irans Denied MOU Explains the …
Prediction Markets & Event Contracts
$12M Ceasefire Contract Goes Disputed as Bandar Abbas St …
Prediction Markets & Event Contracts
Four New E-mini Futures Launch June 29 -- Russell 3000, …
Emini and Emicro Index
GDP Day: The First Economic Reckoning -- Pahlavi at 6.55 …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
16 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
1 thanks
  #22 (permalink)
ezrollin
Cleburne
 
Posts: 14 since Dec 2019
Thanks Given: 21
Thanks Received: 0

Hey guys, I'm basically trying to do the exact same thing as you. I'm looking for MACD crossovers. Seems like I get false readings sometimes.


How would I stop out of the strategy immediately if the play doesnt go in my favor?
The MACD is still crossed over bullish but the price action went bearish.



Also... What is the tradestation ticker for the /ES (S&P 500 FUTURES)???
thanks


Attached Thumbnails
Click image for larger version

Name:	sss.png
Views:	301
Size:	53.2 KB
ID:	281330  
Reply With Quote
  #23 (permalink)
ezrollin
Cleburne
 
Posts: 14 since Dec 2019
Thanks Given: 21
Thanks Received: 0


I was trying to make a strategy based on only taking buys when theres a macd cross thats also above the zero line.
I was getting false positives.
I dont know what i'm doing
thanks




Quoting 
{ Search Tag: WA-MACD LE }


SetStopLoss(1);
[IntraBarOrderGeneration = TRUE]



inputs:
FastLength( 12 ) [DisplayName = "FastLength", ToolTip =
"Enter number of bars to use in calculation of shorter length moving average."],
SlowLength( 26 ) [DisplayName = "SlowLength", ToolTip =
"Enter number of bars to use in calculation of longer length moving average."],
MACDLength( 9 ) [DisplayName = "MACDLength", ToolTip =
"Moving Average Convergence Divergence Length. Enter the number of bars to use in smoothing the MACD value."];

variables:
MyMACD( 0.000 ),
MACDAvg( 0.000 ),
MACDDiff( 0.000 );

MyMACD = MACD( Close, FastLength, SlowLength );
MACDAvg = XAverage( MyMACD, MACDLength );


{ CB > 2 check used to avoid spurious cross confirmation at CB = 2 (at CB = 1,
MyMACD and MACDAvg will be the same) }
//if CurrentBar > 2 and MACDDiff crosses over 0 then
// Buy ( !( "MACD LE" ) ) next bar at market;





if (MyMACD > 0.008) and (MyMACD crosses above MACDAvg) then Buy(!("MACD Buy")) this bar 1 shares; {LIMIT}

if (MyMACD < MACDAvg) or (MyMACD = MACDAvg) then Sell("MACD Sell") this bar;


//print (MyMACD);
//print (macdavg);

print ("Profit: " , GrossProfit , " Loss: " , GrossLoss , " Losers: " , NumLosTrades , " PercentProfit: " , PercentProfit , "% Total Trades: " , TotalTrades);


Reply With Quote




Last Updated on March 7, 2020


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts