logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
PROFIT306  
#1 Posted : Tuesday, July 11, 2023 12:23:54 PM(UTC)
PROFIT306

Rank: Member

Groups: Registered, Registered Users
Joined: 8/11/2013(UTC)
Posts: 24
Location: MUMBAI

Was thanked: 1 time(s) in 1 post(s)

Hello

I have created a formula with the name "profit1"

I want to know:

1.In the last 35 bars, 2.The fml("profit1") should come at least 4 times,   (Sum(fml("profit1"),35)>=4) 3.The closing price of the present bar should be more than the "highest high" of the fml("profit1") of the last 35 bars.{C>HHV(FML("PROFIT1"),35) is not giving the desired result)...}

Kindly help. Thanks in advance.

MS Support  
#2 Posted : Thursday, July 13, 2023 2:49:32 PM(UTC)
MS Support

Rank: Advanced Member

Groups: Moderators, Registered, Registered Users, Subscribers
Joined: 10/8/2010(UTC)
Posts: 1,960

Thanks: 92 times
Was thanked: 155 time(s) in 150 post(s)
Originally Posted by: PROFIT306 Go to Quoted Post

Hello

I have created a formula with the name "profit1"

I want to know:

1.In the last 35 bars, 2.The fml("profit1") should come at least 4 times,   (Sum(fml("profit1"),35)>=4) 3.The closing price of the present bar should be more than the "highest high" of the fml("profit1") of the last 35 bars.{C>HHV(FML("PROFIT1"),35) is not giving the desired result)...}

Kindly help. Thanks in advance.

Hello,

You would probably want to use the REF function around the HHV function because HHV will include the current price bar. For example:

Code:
C>Ref(HHV(FML("PROFIT1"),35),-1)

PROFIT306  
#3 Posted : Friday, July 21, 2023 11:47:45 AM(UTC)
PROFIT306

Rank: Member

Groups: Registered, Registered Users
Joined: 8/11/2013(UTC)
Posts: 24
Location: MUMBAI

Was thanked: 1 time(s) in 1 post(s)
Thanks
Users browsing this topic
Guest (Hidden)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.