Obviously, you will need to adjust the input values to match what your Prorealtime code, but I think this approximates what you are looking for. The psar cross over would need to be tweaked a bit, I think. I have not tested this, however.
“Strategy without tactics is the slowest route to victory. Tactics without strategy is the noise before defeat.” - Sun Tzu
The following 2 users say Thank You to cbritton for this post:
thanks alot for the prompt reply/code. However it doesnt work. it passes the E-Language verification however no signals are generated.
i kept tweaking it over and over to see if one particular variable was causing it not to work, but that didnt work.
i removed everything relating to MACD and had it try and buy and sell based only on the parabolic sar crosses and this did not work either. it seems it is primarily caused by the use of the Parabolic Sar references.
Also the code you have posted shows sellshort. this is a long only type strategy.
The entries look like this:
freeimagehosting . net /t/69rzq. jpg
(link without the spaces - as i am a new member i cannot post links till post count > 5)
Attach images to your post instead of embedding them.
Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.
Need help? 1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first. 2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses. 3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make. 4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance. 5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers. 6) Help using the forum? Watch this video to learn general tips on using the site.
If you want to support our community, become an Elite Member.