Current location | Thread information | |
![]() ![]() ![]() ![]() ![]() ![]() |
Last Activity 1/2/2025 4:50 PM 113 replies, 12126 viewings |
Printer friendly version |
^ Top | |||
![]() This accout has been deleted |
I see that OT has "Two Moving Average Crossover" system. Is it possible to create the "Exponential" version of this system? Part 2: I want to create a voting Strategy based on just one or two "Two Exponential Moving Average Crossover" (TEMAC) In this strategy, if the short term TEMAC is bullish, I would like to have a buy signal... if both short and long term TEMAC is bullish, I want a stronger buy signal. I would also like to have sell and strong sell signal too. Could you tell me if this is possible in one or both parts? I really could use your assistance in creating this System and Strategy. Thanks, Stan | ||
^ Top | |||
Jim Dean![]() Sage ![]() ![]() Posts: 3022 Joined: 9/21/2006 Location: L'ville, GA ![]() |
Hi, Stan: It's easy to do what you are speaking of, and a million other variants, limited pretty much only by your imagination ... but you need to own OT Pro to accomplish it. Basic OT provides OmniScript-based Filtering, and OmniScript-based Color Charts, and OmniScript-based EZ MTC Setups, and OmniScript-based conditional Trade Plan rules, but you need OT Pro to define custom Systems or robust Stops or complex Indicators, using OmniLanguage. Upgrading to Pro might be a "pricey" step, but it's the best money you can spend on an upgrade, IMHO. | ||
^ Top | |||
bradkent![]() Regular ![]() ![]() ![]() Posts: 97 Joined: 3/22/2006 Location: New Jersey, USA ![]() |
The Help file says that the MV2-C Moving Average Crossover System is derived from two exponential moving averages. So, that part is already done. As Jim said, OTPro would enable you to do Part 2. It's a great investment if you are looking to really customize. - Brad | ||
^ Top | |||
![]() This accout has been deleted |
Oh! I didn't realize that... fantastic. Now as far as buying OT Pro... that's a little out of my budget range. I am trying to keep my money... not spend it. Any other idea for Part 2? I'd really appreciate any thoughts you may have. | ||
^ Top | |||
Jim Dean![]() Sage ![]() ![]() Posts: 3022 Joined: 9/21/2006 Location: L'ville, GA ![]() |
Sorry I had not realized the canned system was exponential. I usually write my own from scratch. You can create a strategy that requires two different variants of the same system to fire within a given number of bars of one another. This is a bit difficult to describe in a post ... especially since I'm not sure how familiar you are with creating Strategies. So, I'll assume that you have read and understood the relevant portions of the Help manual and in the Systems and Indicators manual ... 1. create a new strategy: Ctrl+S > New > select Default as basis > give it a distinctive name like "aStanDoubleDualEMAcross". 2. delete the filter block (unless you want to use it ... you should see a Systems block, a Vote block, and an Orders block 3. drag in a SECOND systems block so that it is below the first one ... it will automatically connect to the Vote block. 4. uncheck all systems in the first column in both blocks (if working from the default)... fast way is to click on the first in the list to highlight it, then scroll to bottom and shift-click on last, to hilite all of them, then click on Enable at the bottom left until the checkbox is empty... also while hilited, click the optimize to uncheck those boxes. all systems now should be unchecked. REPEAT for BOTH systems blocks 5. in the first system block, check the Enable column for the MV2-C system and set the Default values for the slow and fast MA's in the top right. Uncheck optimize unless you want it from the getgo. Uncheck Use reversing signals. Select Both for signals to generate. 6. repeat #5 for the other systems block, with your other pair of moving averages in the Default cells. 7. now you have to tell OT to require both of these systems to have fired within some reasonable number of bars (days) of one another. open up the Vote block and tell it a reasonable number of days for that overlap, like maybe 5 (depends on what you chose for ema periods). 8. in vote block select All inputs must fire, and change cutoff to Fixed with a threshold of zero (shows everything this way). 9. change Orders block Entries to Market on Close, and Exits to Market on Close, with desired stops ... Fixed Loss and Fixed Profit are reasonable starting points. Leave optimization unchecked. 10. save it, and use ToDo to run it on a simple list like the DJ30 or SP100 ... double click on the Sig column to see things that fired. **** that is a VERY fast tutorial ... there are MANY other ways to do something similar, including using a filter block or confirming block for the second dual-MA rule, or using EZ Setups for either or both rules. All can be done without Pro. Sorry for leading you down the wrong path unnecessarily. Note that you'd also be wise to actually PLOT the EMA's that you are using, so you can check if the signals are doing what you want. ***** The most important thing as you are learning this stuff is to START SIMPLE, study the simple thing to death without complicating it ... don't add filters or other blocks ... just play with the param's and look at lots of charts till you UNDERSTAND it. | ||
^ Top | |||
Jim Dean![]() Sage ![]() ![]() Posts: 3022 Joined: 9/21/2006 Location: L'ville, GA ![]() |
Here are some pictures to illustrate the prior post, and the result: [Edited by Jim Dean on 7/8/2010 9:55 AM] ![]() ![]() | ||
^ Top | |||
![]() This accout has been deleted |
That's a great start... I am a beginner when it comes to OT programming, but I am very tech savvy. I did everything you said but the entry and exit is not consistent. Let's forget about the second TMAC. Just one system and set it 5 days and 20 days. The vote line does not match what is on the chart at the buy and sell point. | ||
^ Top | |||
Jim Dean![]() Sage ![]() ![]() Posts: 3022 Joined: 9/21/2006 Location: L'ville, GA ![]() |
Please be more specific - not sure what you mean by "consistent". The systems and exits are doing what they have been told to do. I made zero attempt to tweak this into a viable strategy - my goal was to show you the mechanics. Please attach some snapshots, ideally with annotations, if you have further questions. | ||
^ Top | |||
![]() This accout has been deleted |
My apology for not being clear. I am still fiddling with the strategy to get it to follow the TMAC system. I attached the picture of the Vote line... I can't get it to 'short' when TMAC said short. In the order box, there is no stop. Enter for both type of trades. Your help is very much appreciated. [Edited by on 7/7/2010 4:01 PM] ![]() | ||
^ Top | |||
Jim Dean![]() Sage ![]() ![]() Posts: 3022 Joined: 9/21/2006 Location: L'ville, GA ![]() |
It's hard to tell a lot from the vote line. Could you please take snapshots similar to the ones I posted, showing the strategy as a flowchart, and each box opened up to display its settings? Also, if you could attach a snap of the focus list and chart WITH the voteline, with Chart Properties > Trades having ALL boxes checked EXCEPT "Show All Reinforced Signals" that would be helpful. It's clear from the voteline that you have a Confirm block in your strategy ... and that's not part of what I had set up. It would be helpful if you'd simply DUPLICATE what I posted ... and see if you get the same results for the same symbol. | ||
^ Top | |||
![]() This accout has been deleted |
Will do... how do you make them appear on the forum? My attachment only shows as attachment. I just deleted the Confirm box. Makes no difference. IF somehow I can attach the strategy... would be easy for all. | ||
^ Top | |||
Jim Dean![]() Sage ![]() ![]() Posts: 3022 Joined: 9/21/2006 Location: L'ville, GA ![]() |
Attachments are fine. I did it for you ... all I'm asking is that you repeat what I did. I can download the attachments. The process of including them in the post has some tricks to it, and has been explained umpty-ump times and I don't have the time to do that right now. I'd prefer to use my time actually helping you with your original problem. Please, first duplicate the work I posted. If the results do not match, we will figure out why. Once we're on the same sheet of music, we can start talking about other stuff. | ||
^ Top | |||
![]() This accout has been deleted |
Here are the screenshots ![]() ![]() ![]() | ||
^ Top | |||
Jim Dean![]() Sage ![]() ![]() Posts: 3022 Joined: 9/21/2006 Location: L'ville, GA ![]() |
Please add the second systems block and set it up as I did. Please set up the orders block as I did (two exit methods checked - you have none). Please plot the four exponential MA's as I did. Then plot the same symbol on the chart as I did. The idea is to make the two identi, and work from there. | ||
^ Top | |||
![]() This accout has been deleted |
Done. ![]() ![]() ![]() | ||
^ Top | |||
Jim Dean![]() Sage ![]() ![]() Posts: 3022 Joined: 9/21/2006 Location: L'ville, GA ![]() |
Thanks. Now we're cookin' I have to take off now but will jump back in later this eve. If you'd like to try out a few things: 1. Change to a single Nbar exit, about 5 days long, and that will simplify the examples. 2. Try varying the overlap-bars input in the vote Block - see how that affects things. 3. Try changing one of the two systems to have exactly the same inputs as the other one. 4. With each iteration, study the chart to see if it's clear how that change affected it. | ||
^ Top | |||
Jim Dean![]() Sage ![]() ![]() Posts: 3022 Joined: 9/21/2006 Location: L'ville, GA ![]() |
OK ... sorry I did not get back to you last night ... too tired ... but I'll try to make it up to you with a bunch of stuff now :~) Hopefully it will be helpful to you. First, let's make some small tweaks in the setup so that we are using the same charts and strategy ... what you did before is very close, but it will be easier if our colors, etc are the same. So, first ... change the ORDERS block to use SIMPLER exits ... uncheck the Fixed Profit and Fixed Loss stops, and check N-Bar, and set the default to 5 bars, and uncheck optimize. Finally, change to Market on Close exits, to clean up the voteline. As shown: [Edited by Jim Dean on 7/8/2010 7:26 AM] ![]() | ||
^ Top | |||
Jim Dean![]() Sage ![]() ![]() Posts: 3022 Joined: 9/21/2006 Location: L'ville, GA ![]() |
Now ... let's clean up the Vote block just so it's not confusing ... the default mentioned Conflict Resolution >= 70% ... we don't want that to be a part of the picture (even tho with the All Inputs setting it's not supposed to be). So, to clean that up, open the Vote block, change the Voting Method to "Majority...", then change the Conflict Resolution to "Generate ...", then change the Voting Method back to "All inputs ..." As shown: [Edited by Jim Dean on 7/8/2010 7:31 AM] ![]() | ||
^ Top | |||
Jim Dean![]() Sage ![]() ![]() Posts: 3022 Joined: 9/21/2006 Location: L'ville, GA ![]() |
Now, let's get on the same sheet of music re the Chart. First, most important, REMOVE the system from the chart ... it produces misleading triangle-signals, and does not do us any other benefit. Second, please change your chart colorset to "Normal" (rightclick on chart, click Properties > Colors tab > scheme=Normal). Third, please change your EMA colors to ones that match mine, so we can discuss them more easily. Note that I made the first DualEMA pair (5+20) dotted, and the second DualEMA pair (10+40) dashed, to visually remind me of their interaction. Also note that I made the faster EMA's (5 & 10) a ligher color than the slower EMA's (20 & 40) ... this also can be a useful visual reminder at times. No biggie ... just some tricks that I've found consistently useful over the years. Finally, please change your settings on teh Chart Options Trades tab to those shown below: The final result should be, after you've done a ToDo with all the new settings on CAT: [Edited by Jim Dean on 7/8/2010 9:57 AM] ![]() ![]() | ||
^ Top | |||
Jim Dean![]() Sage ![]() ![]() Posts: 3022 Joined: 9/21/2006 Location: L'ville, GA ![]() |
And ... here's the "howto" re getting a snapshot to appear in your post. 1. Take a snapshot ... SnagIt is a good tool for this ... annotate it if you'd like with arrows and circles and text ... save it as a PNG file. 2. Create the post, with the body-text in the message area. 3. Check the box "Attach a file to this thread after posting" 4. Click Submit 5. Use Browse to select the PNG file(s) you want to display ... click Submit after each one is found. Click Back when you're done. 6. Now the TRICK comes ... you're looking at the thread in View mode ... RIGHT CLICK on the name of the attached file, and click Properties ... you will see the URL for it ... HIGHLIGHT that URL (completely) and rightclick to Copy it. Exit the properties window. 7. Edit your post, and at the place you want the snapshot to appear, type in the "[ img =" formatting code (NO spaces), then PASTE the url in there, the put a "]" at the end and click Submit. Voila! P.S. note that the attachements are (usually) sequentially numbered ... once you've created one IMG= line, you can create others for the same post by copy/paste and incrementing the number by one. important note PLEASE, PLEASE do not include "WIDE" snapshots in a displayed mode ... if you do it MESSES UP THE ENTIRE THREAD, by forcing the width to be transcontinental ... lots of panning back and forth ... and the text becomes very difficult to read. I strongly advise that the width of your snap should be 800 pixels or less. If necessary, shrink it, or chop it up into two pieces and stack them. Thanks! Here's a couple of snapshots that illustrate the tricks: [Edited by Jim Dean on 7/8/2010 7:54 AM] ![]() ![]() | ||
^ Top | |||
Jim Dean![]() Sage ![]() ![]() Posts: 3022 Joined: 9/21/2006 Location: L'ville, GA ![]() |
OK ... please let me know when you've accomplished all that. I suggest you save the chart template with a memorable name (and the strategy as well). If you've got the interest and patience to walk through this with me for awhile, I'll use this as a strawman to demonstrate a LOT of different things you can do to work with Strategies in OmniTrader. Please take a snapshot of your completed chart ... set it for 50 bars display ... it should look pretty much EXACTLY like mine. See if you can get it to show up in your post, if you'd like. Thus this can become a useful "tutorial" for others as well. [Edited by Jim Dean on 7/8/2010 7:59 AM] | ||
^ Top | |||
![]() This accout has been deleted |
Done. I didn't realize that it captured my entire desktop.... 3 monitors worth! I will download SnagIt to test it out... "Paint" doesn't have auto resizer feature. BBL... A guy gotta eat! Not too long though... ![]() ![]() | ||
^ Top | |||
Jim Dean![]() Sage ![]() ![]() Posts: 3022 Joined: 9/21/2006 Location: L'ville, GA ![]() |
SnagIt is the best $40 you'll ever spend for a utility, IMHO. OT does have a capture tool that you can use with Paint, which works better than Shift-PrntScrn ... there are actually two instances of it ... you can turn on the icons via View > ToolBars > Screenshot. Those SS icons give you adequate versatility to capture what you want ... Paint gives you unimaginative but adequate ability to annotate it. BUT I still am a diehard Snagit fan ... SO much more is possible! [Edited by Jim Dean on 7/8/2010 9:51 AM] ![]() ![]() | ||
^ Top | |||
![]() This accout has been deleted |
I was using the Windows PrintScreen function. Ahh... I was clicking on Capture Windows before... I didn't realize the "Capture Region" button for selectible region to capture. Thanks for your lessons... it is very much appreciated. I want to learn more. It is funny. I have OT for like 10 years now but never really got into strategy section. Better late than never huh? | ||
^ Top | |||
![]() This accout has been deleted |
Snagged! Neat software. Now looking at the voting... it is not as profitable as it could be. What can we do to improve this? [Edited by on 7/8/2010 11:10 AM] ![]() |
Legend | Action | Notification | |||
Administrator
Forum Moderator |
Registered User
Unregistered User |
![]() |
Toggle e-mail notification |