Jump to content

Wave Trend Indicators


egaalh

Recommended Posts

I found mq4 for Trendwave. Can a programmer help me convert? Just google Trendwave.mq4 if you want to work from file but here's what i think it means:

private int wavePeriod = 10;
private int avgPeriod = 21;
private double overSold1 = -50;
private double overSold2 = -60;
private double overBought1 = 53;
private double overBought2 = 60;

ESA = EMA(Typical[0], wavePeriod)[0]
DDValues = Math.Abs(Typical[0] - ESA)
DD = EMA(DDValues, wavePeriod)
		
if (DD > 0)
    CI = (Typical[0] - (ESA/(0.015*DD)))
else 
    CI = 0
	
Bull=EMA(CI,avgPeriod)
Bear=SMA(Bull, 4)
		
if Bull>=Bear && Bull>=Bear 1barago && Bull < -50(overbought1)
     BuyDot=Bull
		
if Bull<=Bear && Bull<=Bear 1barago && Bull > 53(oversold1)
    SellDot=Bull

 

sorry for my half-programming language. Hopefully, it's clear enough.

Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...
  • 7 months later...
  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...