Dinapoli MACD predictor need help with scan programming - ThinkOrSwim Programming | futures.io
futures.io futures trading

Go Back   futures.io

> Futures Trading, News, Charts and Platforms > Platforms and Indicators > ThinkOrSwim > ThinkOrSwim Programming

Dinapoli MACD predictor need help with scan programming
Started:May 2nd, 2016 (04:04 PM) by jnix Views / Replies:244 / 0
Last Reply:May 2nd, 2016 (04:04 PM) Attachments:0

Welcome to futures.io.

Welcome, Guest!

This forum was established to help traders (especially futures traders) by openly sharing indicators, strategies, methods, trading journals and discussing the psychology of trading.

We are fundamentally different than most other trading forums:
  • We work extremely hard to keep things positive on our forums.
  • We do not tolerate rude behavior, trolling, or vendor advertising in posts.
  • We firmly believe in openness and encourage sharing. The holy grail is within you, it is not something tangible you can download.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community. It's free and simple, and we will never resell your private information.

-- Big Mike

Thread Tools Search this Thread

Dinapoli MACD predictor need help with scan programming

Old May 2nd, 2016, 04:04 PM   #1 (permalink)
Trading Apprentice
Atlanta, GA USA
Futures Experience: Intermediate
Platform: Thinkorswim
Favorite Futures: Currency + stocks
Posts: 1 since Jan 2015
Thanks: 0 given, 0 received

Dinapoli MACD predictor need help with scan programming

I am going to start by sharing a TOS study I created using Dinapoli's MACD Predictor equations. Then I am going to ask for help creating a scan since I have messed around with it for over 4 months with results that are not shown. The study will be below for anyone that would like to test it out. It uses the MACD with Fast = 8.3897 Slow = 17.5185 and Length = 9.0503 (From Trading Dinapoli Levels) and plots where the MACD changes. I ask that if you want to learn about it that you search around the internet for Dinapoli and read his book rather than ask me a bunch of questions.

What I want is to create a scan that returns a cross above the "Crossprice" from the study below. I have tried scanning where the open was less than and the close was greater than. But it doesn't seem to work for me. If I need to add a boolean arrow in the study itself I can but I was hoping the Scan could do the math. Thanks in advance and good hunting.

input FAST = 8.3897;
input SLOW = 17.5185;
input Length = 9.0503;

def a = 2 / (1 + FAST);
def b = 1 - a;
def c = 2 / (1 + SLOW);
def d = 1 - c;
def e = 2 / (1 + Length);
def f = 1 - e;

rec FASTMAQ = (close[1] * a) + (FASTMAQ[1] * b);
rec SLOWMAQ = (close[1] * c) + (SLOWMAQ[1] * d);

rec Signal = (MACD * e) + (Signal[1] * f);

plot Crossprice = ((Signal * f) + (FASTMAQ * b * e) - (SLOWMAQ * d * e) -
(FASTMAQ * b) + (SLOWMAQ * d)) / (a - c - (a * e) + (c * e));

plot xPrice = CrossPrice;

Reply With Quote


futures.io > Futures Trading, News, Charts and Platforms > Platforms and Indicators > ThinkOrSwim > ThinkOrSwim Programming > Dinapoli MACD predictor need help with scan programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Upcoming Webinars and Events (4:30PM ET unless noted)

An Afternoon with FIO trader bobwest

Elite only

NinjaTrader 8: Programming Profitable Trading Edges w/Scott Hodson

Elite only

Anthony Drager: Executing on Intermarket Correlations & Order Flow, Part 2

Elite only

Adam Grimes: Five critically important keys to professional trading

Elite only

Machine Learning Concepts w/FIO member NJAMC

Elite only

MarketDelta Cloud Platform: Announcing new mobile features

Dec 1

NinjaTrader 8: Features and Enhancements

Dec 6

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dinapoli Expansions/Dinapoli targets Zemlic NinjaTrader 3 April 1st, 2016 07:58 AM
Elder's MACD-H divergence SCAN ositokillao ThinkOrSwim 8 February 7th, 2016 11:41 PM
Programming TTM_squeeze into a scan wireyear ThinkOrSwim Programming 6 September 2nd, 2013 10:56 PM
Average Volume Scan / Scan Results TonyB ThinkOrSwim 5 March 23rd, 2013 02:20 PM
TRSI Indicator. Neal Hughes Joe Dinapoli dee50 The Elite Circle 4 November 29th, 2012 01:31 PM

All times are GMT -4. The time now is 11:45 AM.

Copyright © 2016 by futures.io. All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts

Page generated 2016-10-25 in 0.06 seconds with 19 queries on phoenix via your IP