Price MA Cross Alert

Here you can post and download custom indicators. PLEASE: Do not start topics unless you are posting your own indicator, they will be moved to appropriate section even if you do.

Moderator: admin

Re: Price MA Cross Alert

Postby 4x4partners » Fri May 08, 2015 9:16 am

Hi Apprentice,

Thanks for the reply. I just re-installed. Still get same error:

An error occurred during the calculation of the indicator 'PRICE MA CROSS ALERT'. The error details: Price MA Cross Alert.lua:291: attempt to compare nil with number.

I think it might be related to VAMA. How do I set it to use BAR and not CLOSE?
4x4partners
 
Posts: 53
Joined: Thu Apr 09, 2015 7:23 am

Re: Price MA Cross Alert

Postby Apprentice » Mon May 11, 2015 4:57 am

Please re-dowmload Price MA Cross Alert.lua
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Price MA Cross Alert

Postby gregoryyul » Fri Jun 12, 2015 5:29 am

Thanks for your alert. I've been looking for something like this.

I went through the settings and have some questions.

I am new to TS II and some parameters aren't clear to me.

1. What's the difference between End of Turn and Live?
2. Where can I find explanations of "Price Source" Median, Typical and weighted?
3. Next to "Price Source" it says "If bar is used". What are the non-bar options?
4. How can I set the indicator to send a signal immediately when the MA is touched before a bar is closed (or opened)?
5, Since I'm using several instances of your indicator at once, is there anyway to know which chart the alert is coming from?

Thanks for your time.

GY
gregoryyul
 
Posts: 7
Joined: Thu Jun 11, 2015 12:56 pm

Re: Price MA Cross Alert

Postby Apprentice » Mon Jun 15, 2015 3:48 am

1. What's the difference between End of Turn and Live?

Live will be executed as soon condition is met.
End of the turn will be executed at the end of the current candle

2. Where can I find explanations of "Price Source" Median, Typical and weighted?

"median" is (high+low)/2
"typical" is (high+low+close)/3
"weighted" is (high+low+2*close)/4
3. Next to "Price Source" it says "If bar is used". What are the non-bar options?

If we have Bar as a source.
Selected component will be used.
Otherwise, the entire bar will be used.
For example, U can select "median" or "typical" for MVA (SMA)
"VAMA" will use the entire bar.

4. How can I set the indicator to send a signal immediately when the MA is touched before a bar is closed (or opened)?

Use Live Mode.

5. Since I'm using several instances of your indicator at once, is there anyway to know which chart the alert is coming from?

U can use Label parameter option to add your own text.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Price MA Cross Alert

Postby gregoryyul » Mon Jun 29, 2015 10:47 am

Hello

Is there any way to add auto-trading to this indicator?

Thanks
gregoryyul
 
Posts: 7
Joined: Thu Jun 11, 2015 12:56 pm

Re: Price MA Cross Alert

Postby Apprentice » Tue Jun 30, 2015 3:51 am

No. Native support for trading from within indcator should be available in one of following TS update.
Until then u can use one of the available Price / MA cross strategys
Price MA Cross Strategy
viewtopic.php?f=31&t=59386&hilit=Price+%2F+MA+cross
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Price MA Cross Alert

Postby gregoryyul » Wed Jul 01, 2015 8:26 pm

Apprentice wrote:No. Native support for trading from within indcator should be available in one of following TS update.
Until then u can use one of the available Price / MA cross strategys
Price MA Cross Strategy
viewtopic.php?f=31&t=59386&hilit=Price+%2F+MA+cross



I don't think this will do what I'm looking for.

I'd like to sell when price touches an MA from beneath and buy when it touches from above but only one trade per bar. the signal should be immediate without waiting for the bar to close.

Any ideas?

Thx for your input
gregoryyul
 
Posts: 7
Joined: Thu Jun 11, 2015 12:56 pm

Re: Price MA Cross Alert

Postby gregoryyul » Wed Jul 01, 2015 8:41 pm

I noticed that the Price MA CROSS indicator is sending alerts without the using the Alert Signal.

How can this be possible?

thx
gregoryyul
 
Posts: 7
Joined: Thu Jun 11, 2015 12:56 pm

Re: Price MA Cross Alert

Postby DAVIDR » Fri Sep 18, 2015 7:37 am

Hi, is it possible to have an arrow above/below the price instead of the dot?
All the best.
DAVIDR
 
Posts: 33
Joined: Fri Oct 28, 2011 1:46 am

Re: Price MA Cross Alert

Postby Apprentice » Mon Sep 21, 2015 2:26 am

Price MA Cross Alert.lua
(12.94 KiB) Downloaded 1056 times

Try this version.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

PreviousNext

Return to Custom Indicators

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 46 guests