Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

momentum Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
IK
Posted : Monday, June 3, 2013 1:04:51 PM
Registered User
Joined: 7/15/2009
Posts: 34

HOW CAN I CREATE AN INDICATOR THAT IS THE MOMENTUM 12 CROSSING UP (DOWN) THE EXPONENTIAL MOVING AVERAGE OF THE MOMENTUM (WHICH ITS VALUE IS ALSO 12) . AND I'D LIKE IT TO IDENTIFY IT HAPPENED 0-4 BARS AGO. IF NEEDED I CAN CREATE 2-3 DIFFERENT VERSIONS

THANKS A LOT

IK

Bruce_L
Posted : Monday, June 3, 2013 1:25:42 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

A Condition Formula for a 12-Period Momentum indicator crossing up through its own 12-Period Exponential Moving Average could be written as:

C / C12 > .1539843 * (C / C12 + 11 / 13 * (C1 / C13 + 11 / 13 * (C2 / C14 + 11 / 13 * (C3 / C15 + 11 / 13 * (C4 / C16 + 11 / 13 * (C5 / C17 + 11 / 13 * (C6 / C18 + 11 / 13 * (C7 / C19 + 11 / 13 * (C8 / C20 + 11 / 13 * (C9 / C21 + 11 / 13 * (C10 / C22 + 11 / 13 * (C11 / C23 + 11 / 13 * (C12 / C24 + 11 / 13 * (C13 / C25 + 11 / 13 * (C14 / C26 + 11 / 13 * (C15 / C27 + 11 / 13 * (C16 / C28 + 11 / 13 * (C17 / C29 + 11 / 13 * (C18 / C30 + 11 / 13 * (C19 / C31 + 11 / 13 * (C20 / C32 + 11 / 13 * (C21 / C33 + 11 / 13 * (C22 / C34 + 11 / 13 * (C23 / C35 + 11 / 13 * (C24 / C36 + 11 / 13 * (C25 / C37 + 11 / 13 * (C26 / C38 + 11 / 13 * (C27 / C39 + 11 / 13 * (C28 / C40 + 11 / 13 * (C29 / C41 + 11 / 13 * (C30 / C42 + 11 / 13 * (C31 / C43 + 11 / 13 * (C32 / C44 + 11 / 13 * (C33 / C45 + 11 / 13 * (C34 / C46 + 11 / 13 * (C35 / C47 + 11 / 13 * (C36 / C48 + 11 / 13 * (C37 / C49 + 11 / 13 * (C38 / C50 + 11 / 13 * (C39 / C51 + 11 / 13 * (C40 / C52 + 11 / 13 * (C41 / C53)))))))))))))))))))))))))))))))))))))))))) AND C1 / C13 <= .1539843 * (C1 / C13 + 11 / 13 * (C2 / C14 + 11 / 13 * (C3 / C15 + 11 / 13 * (C4 / C16 + 11 / 13 * (C5 / C17 + 11 / 13 * (C6 / C18 + 11 / 13 * (C7 / C19 + 11 / 13 * (C8 / C20 + 11 / 13 * (C9 / C21 + 11 / 13 * (C10 / C22 + 11 / 13 * (C11 / C23 + 11 / 13 * (C12 / C24 + 11 / 13 * (C13 / C25 + 11 / 13 * (C14 / C26 + 11 / 13 * (C15 / C27 + 11 / 13 * (C16 / C28 + 11 / 13 * (C17 / C29 + 11 / 13 * (C18 / C30 + 11 / 13 * (C19 / C31 + 11 / 13 * (C20 / C32 + 11 / 13 * (C21 / C33 + 11 / 13 * (C22 / C34 + 11 / 13 * (C23 / C35 + 11 / 13 * (C24 / C36 + 11 / 13 * (C25 / C37 + 11 / 13 * (C26 / C38 + 11 / 13 * (C27 / C39 + 11 / 13 * (C28 / C40 + 11 / 13 * (C29 / C41 + 11 / 13 * (C30 / C42 + 11 / 13 * (C31 / C43 + 11 / 13 * (C32 / C44 + 11 / 13 * (C33 / C45 + 11 / 13 * (C34 / C46 + 11 / 13 * (C35 / C47 + 11 / 13 * (C36 / C48 + 11 / 13 * (C37 / C49 + 11 / 13 * (C38 / C50 + 11 / 13 * (C39 / C51 + 11 / 13 * (C40 / C52 + 11 / 13 * (C41 / C53 + 11 / 13 * (C42 / C54))))))))))))))))))))))))))))))))))))))))))

You can change the > at the beginning of the formula to < and the <= near the middle of the formula to >= to check for a crossdown instead.

To check for this happening during tthe most recent 5-bars, use the Condition Formula as the Boolean Formula in a Custom PCF % True Indicator with the Period set to 5 and the Average Type set to Simple. The Custom PCF % True Indicator will only be greater than 0 if the Boolean Formula was true at least one during the most recent 5-bars.

This allows you to create a Condition for this by clicking on the Custom PCF % True Indicator and selecting Create Scan Condition. You would set the Condition to Greater Than 0.

Create Conditions from Your Chart



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
IK
Posted : Monday, June 3, 2013 2:48:16 PM
Registered User
Joined: 7/15/2009
Posts: 34

THANKS 

WHERE CAN I FIND SOME INSTRUCTIONS IN REGARDS TO Condition Formula as the Boolean Formula in a Custom PCF % True Indicator with the Period set to 5 and the Average Type set to Simple. The Custom PCF % True Indicator will only be greater than 0 if the Boolean Formula was true at least one during the most recent 5-bars.

This allows you to create a Condition for this by clicking on the Custom PCF % True Indicator and selecting Create Scan Condition. You would set the Condition to Greater Than 0.

Bruce_L
Posted : Monday, June 3, 2013 3:06:36 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

Those are instructions and encompass absolutely everything you need to do. There are no additional steps required beyond what was stated in the original response.

I can break down the instructions into individual steps which are presented one step per line and provide additional commentary on each step however as it might be easier to follow.

Click on Add Indicator on the chart and choose Custom PCF % True Indicator from the list.

Adding and Moving Indicators

- Click on the Custom PCF % True Indicator and select Edit. This will bring up an Edit Formula window.

- Set the Period to 5.

- Set the Average Type to Simple.

- Put the Condition Formula presented in my Monday, June 03, 2013 1:25:42 PM ET post into the Boolean Formula box. It will be easier to copy and paste the formula than to type it in manually. You can highlight the formula and then right-click on it and select Copy to get it into the clipboard. You can click on the Boolean Formula box in TC2000 and select ctrl-v to paste the Condition Formula into the Boolean Formula box.

- Click OK.

You now have a Custom PCF % True Indicator which will display 0 if its Boolean Formula was not true at all during the most recent 5-bars and something greater than 0 if its Boolean Formula was true at least once during the most recent 5-bars. The results would be 20 for once, 40 for twice, 60 for three times, 80 for four times and 100 if the Boolean Formula is true during all 5-bars.

Now we need to create the Condition. Click on the Custom PCF % True Indicator and select Create Scan Condition.

Create Conditions from Your Chart

- Click on the Condition drop-down menu and select Greater Than.

- Set Greater Than to 0.

How you would want to use the Condition is up to you. You can save the Condition to use later if desired, add the Condition to an existing WatchList or EasyScan that is already on your chart or create a new EasyScan based on the Condition depending on which option you select after setting up the Condition.

Note that the underlined sections above are hyperlinks which link to other topics or videos which might be useful to review to understand the rest of the response better.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
IK
Posted : Monday, June 3, 2013 4:23:26 PM
Registered User
Joined: 7/15/2009
Posts: 34

THANKS A LOT 

I DID AS YOU TOLD ME AND IT'S WORKING

THANKS A LOT

IK
Posted : Monday, June 3, 2013 5:06:00 PM
Registered User
Joined: 7/15/2009
Posts: 34

HI BRUCE 

I DID WHAT YOU SAID AND IT WAS LOOKING OK BUT I CHECKED IT AND FOR EXAMPLE I RAN THE CONDITION ( I CHANGED THE DIRECTION AS YOU SAID FOR FINDING CROSSING DOWN ) AND THE SORT SHOWS ME SEVERAL STOCKS AND ONE OF THEM IS "WIN" THAT WHEN YOU TEST IT THE VALUE SAYS ITS FALSE 

CAN YOU BE SO KIND AND LOOK INTO IT PLEASE

THANKS

IK

 

IK
Posted : Monday, June 3, 2013 11:59:13 PM
Registered User
Joined: 7/15/2009
Posts: 34

HI BRUCE

THANKS A LOT , NOW IT LOOKS FINE 

HAVE A GREAT DAY AND SORRY FOR ALL THE TROUBLE

TAKE CARE

IK

Bruce_L
Posted : Tuesday, June 4, 2013 8:38:18 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

You're welcome. I am happy to read you were able to figure it out on your own.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Quiktdr
Posted : Thursday, June 6, 2013 4:29:45 PM
Registered User
Joined: 10/7/2004
Posts: 794

I am experiencing brain freeze, when I do a sort and compare two ma's what does result signify.  For instance I did a sort by of a 3e crossing a 5e on a 5' and a number 5.79 appears in sort column. I know its not % and its not money. Please clarify.Thank you!

Bruce_L
Posted : Thursday, June 6, 2013 4:32:00 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

I have no idea as I do not know how your "3e crossing a 5e" WatchList Column was created. If you click on one of the exponential moving averages and select Create Scan Condition to compare them, the result will be true or false and not a numeric value.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Quiktdr
Posted : Friday, June 7, 2013 10:54:28 AM
Registered User
Joined: 10/7/2004
Posts: 794

I am creating a sort value by first pressing ma then pressing sort by in order to get Indicator sort properties then I check compared To: enter next ma leave at comparison-visual difference  press sort and then I get numerical results in Sort Value column on left of charts. My question is what does that number represent.   Thank you

Bruce_L
Posted : Friday, June 7, 2013 11:11:48 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

If I am correct that the question has nothing to do with the topic in which it was posted (it isn't about momentum), nothing to do with the forum in which it was posted (it is about TC2000 version 7 and not TC2000 version 12.3) or actually include the phrase "3e crossing a 5e" in the program anywhere, then I think I understand your question.

The value represents the percent of the vertical range of the pane in which the 3-period exponential moving average and 5-period exponential moving average are plotted that the 3-period exponential moving average is above or below the 5-period exponential moving average.

Comparing indicators using Visual Difference sorts

If it does have anything to do with momentum, TC2000 version 12.3 or 3e crossing a 5e, then I'm still stumped.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Users browsing this topic
Guest-1

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.