Error

 Previous Topic Next Topic
 mohamedmostfa #1 Posted : Friday, May 3, 2024 6:11:55 PM(UTC) Rank: MemberGroups: Registered, Registered Users, SubscribersJoined: 4/5/2023(UTC)Posts: 10Location: 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?
 Wanna join the discussion?! Login to your Discussions forum accountor Register a new forum account.
 MS Support #2 Posted : Monday, May 6, 2024 2:54:36 PM(UTC) Rank: Advanced MemberGroups: Moderators, Registered, Registered Users, SubscribersJoined: 10/8/2010(UTC)Posts: 1,945Thanks: 88 timesWas thanked: 155 time(s) in 150 post(s) Originally Posted by: mohamedmostfa 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) Rank: MemberGroups: Registered, Registered Users, SubscribersJoined: 4/5/2023(UTC)Posts: 10Location: cairo Thank you. Is it possible to convert to an expert?
 MS Support #4 Posted : Friday, May 10, 2024 2:47:38 PM(UTC) Rank: Advanced MemberGroups: Moderators, Registered, Registered Users, SubscribersJoined: 10/8/2010(UTC)Posts: 1,945Thanks: 88 timesWas thanked: 155 time(s) in 150 post(s) Originally Posted by: mohamedmostfa 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) Rank: MemberGroups: Registered, Registered Users, SubscribersJoined: 4/5/2023(UTC)Posts: 10Location: cairo Thank you
 mohamedmostfa #6 Posted : Tuesday, May 14, 2024 7:53:25 PM(UTC) Rank: MemberGroups: Registered, Registered Users, SubscribersJoined: 4/5/2023(UTC)Posts: 10Location: cairo Is it possible to write the date of the achieved candle based on that?
 Users browsing this topic
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.