Requesting assistance with Programming Strat - futures io
futures io



Requesting assistance with Programming Strat


Discussion in EasyLanguage Programming

Updated
    1. trending_up 2,352 views
    2. thumb_up 0 thanks given
    3. group 1 followers
    1. forum 1 posts
    2. attach_file 0 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 150,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
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.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

Requesting assistance with Programming Strat

(login for full post details)
  #1 (permalink)
 TheManWithNoPlan 
Chicago, Illinois
 
Experience: Intermediate
Platform: Tradingview, Tradestation
Broker: NinjaTrader
Trading: Futures, Options
 
TheManWithNoPlan's Avatar
 
Posts: 28 since Mar 2022
Thanks: 21 given, 23 received

Hey Everyone I am trying to program rob smiths the strat (my interpretation of it at least) into easy language as a strategy so that I can automate it. I have had good success with manually trading it and want to automate but am running into a couple issues getting it automated. I will include what I have so far at the bottom.

Issue 1 it is closing on the same bar it opens the trade

Issue 2 is the stop does not seem to be being hit ever not sure if it is due to issue 1

for background on what I am trying to accomplish, I want to buy the current candle if it breaks the high of the previous candle and to place a stop at the low of the previous candle, it would then trail the stop to each previous candle low until stopped out. If I could get it to also have a user defined ema filter (such as only take long entries if above say a 50 ema) even better.

here is what I have so far.



[IntrabarOrderGeneration = True]

Condition1 = High > High of 1 bar ago;

if Condition1 then
Buy ( "Buy" ) at next bar market ;

if Condition1 Then Setstoploss at (Low of 1 bar ago) ;


Any help is greatly appreciated, as I don't see anything in documentation that suggests what I put in should be behaving like this.

Started this thread Reply With Quote

Can you help answer these questions
from other members on futures io?
Market on Close data within IB
Platforms and Indicators
help with take profit several targets
TradeStation
Multi Time Frame High/Low/Median levels
NinjaTrader
Multiple brokerage accounts within one or more brokers
Traders Hideout
NT8 Order Management Strategy
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on futures io
Is anyone actually making money?
123 thanks
ApexTraderFunding.com experience and review
11 thanks
Want your NinjaTrader indicator created, free?
7 thanks
Artificial Intelligence (AI) and Chat GPT
7 thanks
Dax market profile (FDAX, TPO)
7 thanks
 
(login for full post details)
  #2 (permalink)
 TheManWithNoPlan 
Chicago, Illinois
 
Experience: Intermediate
Platform: Tradingview, Tradestation
Broker: NinjaTrader
Trading: Futures, Options
 
TheManWithNoPlan's Avatar
 
Posts: 28 since Mar 2022
Thanks: 21 given, 23 received

WOW. So I found the issue, and it is really dumb lol. I had the opposite as another strategy to close longs, and I had a > instead of a < for the low operator. lol.

Started this thread Reply With Quote


futures io Trading Community Platforms and Indicators EasyLanguage Programming > Requesting assistance with Programming Strat


Last Updated on May 27, 2022


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
     



Copyright © 2023 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada), info@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