Registered User Joined: 9/20/2012 Posts: 7
|
I am learning the ends and outs of Forex. I know you can write and design your own Earning Assistant to trade for you. I like TC2000's 5 day exponential moving average and 10 day exponential moving average crossovers on a daily scale to alternate buy and sell orders. I want to program and Earning Assitant in Metatrader 4 to alternate buy and sell on the crossovers so it runs all the time from a remote hard drive.
Is there any compatibilty between C++ and TC2000 formulas? I haven't learned C++ yet but it won't take me long. Is there a way to translate TC2000 formulas into C++ ?
I love TC2000, it is so much better than Metatrader 4, but that is what FXCM reccomends to run an EA. Is TC200 compatible to run with any EAs?
|
Registered User Joined: 9/20/2012 Posts: 7
|
sorry, I mean expert advisor not earning assistant.
|

 Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
There isn't a lot of similarity between the Personal Criteria Formula Language and most full blown programming languages. The PCF Language is designed to create formulas for technical analysis and most of its syntax is devoted specifically to things such as price, volume and common indicators used in analyzing stock charts.
C++ is going to be more fully featured than the PCF Language, but you aren't going to have much in the way built in features to work with stock prices. That said, while I am not personally familiar with it (or any other third party technical analysis products), I would think Metatrader 4 would have such tools available if that is how are planning to run C++ (or know of a way to integrate MT4 with some C++ you are writing).
TC2000 is not designed as a tool for use in automated trading and there aren't any features built in to do so. I do not know of a way for you to integrate TC2000 version 12.2 into your Earning Assistant.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
Registered User Joined: 9/20/2012 Posts: 7
|
Thanks, I have found programs that you can buy that have visual algorithms to organize specific criteria. Then it formats the C++ for you.
Is there any way in TC2000 to search for pin bars on candlesticks on a 4hr scale in TC2000? Maybe a narrow range open and close with high range between high and low. Then if there is a way to search for that how would I catch it? Is there a way to constantly monitor the Forex market and have and alert triggered when such an instance happens?
|

 Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
We could check for the absolute distance between the open and the close to be less than 5% of the total range of the bar using something like:
ABS(C - O) / (H - L) < .05
I'm not sure what you want to use for a "high range between high and low" however. I guess we could check for it to be some multiple of the average range over some arbitrary number of bars. For example, the following checks for total range to be more than three times the average range over the prior five bars:
H - L > 3 * (AVGH5.1 - AVGL5.1)
Combining these would result in:
ABS(C - O) / (H - L) < .5 AND H - L > 3 * (AVGH5.1 - AVGL5.1)
My guess is that the eventual Condition Formula you would want to use would differ from this as the percentages and ratios chosen were arbitrary. You would want to set the Time Frame of the Condition to 4-Hours.
Personal Criteria Formula Conditions
PCF Formula Descriptions
Handy PCF example formulas to help you learn the syntax of PCFs!
Boolean PCFs for Candlestick Patterns
You could use this Condition in an EasyScan to scan any WatchLists to see if this is happening during the current 4-Hour bar.
EasyScan Basics
EasyScan Expanded
Normally I would say using an EasyScan is your best option for scanning an entire WatchList because Alerts a for specific symbols and not for entire WatchLists, but the fact that the Forex WatchList is relatively small means you could create an Alert for each symbol relatively easily.
Setting Alerts
Monitoring Alerts
-Bruce Personal Criteria Formulas TC2000 Support Articles
|