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

Notification

Icon
Error

Options
Go to last post Go to first unread
mohamedmostfa  
#1 Posted : Friday, May 3, 2024 6:11:55 PM(UTC)
mohamedmostfa

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 4/5/2023(UTC)
Posts: 10
Location: cairo

Mod(Cum(1),8)=0

When divided by 8 it gives a remainder of zero Is it possible to have an equation to give the remainder equals = zero for the number of times?

MS Support  
#2 Posted : Monday, May 6, 2024 2:54:36 PM(UTC)
MS Support

Rank: Advanced Member

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

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

Mod(Cum(1),8)=0

When divided by 8 it gives a remainder of zero Is it possible to have an equation to give the remainder equals = zero for the number of times?

Hello,

Are you wanting to know the number of times this formula is equal to 1 over time? If so, you could perhaps write something like:

Code:
X:=Mod(cum(1),8)=0;
Cum(X=1)

mohamedmostfa  
#3 Posted : Thursday, May 9, 2024 6:16:51 PM(UTC)
mohamedmostfa

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 4/5/2023(UTC)
Posts: 10
Location: cairo

Thank you. Is it possible to convert to an expert?

MS Support  
#4 Posted : Friday, May 10, 2024 2:47:38 PM(UTC)
MS Support

Rank: Advanced Member

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

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

Thank you. Is it possible to convert to an expert?

Hello again,

The formula works in the Expert Advisor, but most of the Expert tabs are simply designed to provide a visual indication of a signal. If you want to actually return the value of the above formula, you would need to add it to the Expert Commentary. To write it in a way that would work in the Expert Commentary, you could remove the Variable, and use the WriteVal function (this function is unique to Expert Commentary).

Code:
WriteVal(Cum((Mod(cum(1),8)=0)=1))

You can of course add more descriptive text to the Commentary tab, and combine this with the formula above.

Edited by user Friday, May 10, 2024 2:48:25 PM(UTC)  | Reason: Not specified

mohamedmostfa  
#5 Posted : Saturday, May 11, 2024 6:18:56 AM(UTC)
mohamedmostfa

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 4/5/2023(UTC)
Posts: 10
Location: cairo

Thank you

mohamedmostfa  
#6 Posted : Tuesday, May 14, 2024 7:53:25 PM(UTC)
mohamedmostfa

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 4/5/2023(UTC)
Posts: 10
Location: cairo

Is it possible to write the date of the achieved candle based on that?

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.