Need help with modifying a working alert

If you need your own private indicator, signal or strategy, or any kind of development using various trading APIs - please visit this forum.

Moderator: admin

Need help with modifying a working alert

Postby ute333 » Tue Jun 04, 2013 8:07 am

Hi Premium Development Services


I have been using an alert that I modified and it has been working great until I added one more condition - it's the second line of code below

if core.crossesOver( BB.BL, TickSource.close, period) then
if (TickSource.high[period] - TickSource.low[period] ) > Pips then
ALERT ("5 M Bottom Band Break Out", " 5 M Bottom BB Break Out");
end

it compiles, runs but does not execute - I probably have something defined incorrectly

what I want the second line to ensure is that candlestick that crosses over the Bollinger band has a length greater then defined by pips - i.e if price crosses BB and the candlestick is greater then 20 pips then alert

where can I send you a copy of the entire program

please submit estimate

thanks

Steve K
ute333
 
Posts: 4
Joined: Thu Apr 04, 2013 6:32 pm

Re: Need help with modifying a working alert

Postby Apprentice » Wed Jun 05, 2013 2:36 am

try something like this
Pips * source: pipSize ()
this way you have Pip value, converted to real currency values.
or use double pip value, like, 0.0001
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36341
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Need help with modifying a working alert

Postby ute333 » Wed Jun 12, 2013 6:31 am

thanks on the third iteration - I got it to work
ute333
 
Posts: 4
Joined: Thu Apr 04, 2013 6:32 pm


Return to Premium Development Services

Who is online

Users browsing this forum: No registered users and 4 guests