Strategy Not Plotting - futures io
futures io futures trading



Strategy Not Plotting


Discussion in EasyLanguage Programming

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




Welcome to futures io: the largest futures trading community on the planet, with well over 125,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
 

Strategy Not Plotting

(login for full post details)
  #1 (permalink)
TORONTO
 
Experience: Advanced
Platform: multi charts
Trading: crude cl
 
simon14's Avatar
 
Posts: 17 since Sep 2016
Thanks: 9 given, 4 received

Hi everyone having some issues with my first strategy iam trying to write with easy language. I have managed indicators before but this seems to be giving me plenty of issues.
The Strat is too buy or sell when the ichimuko lines crossover or under eachother.
here is my code. ( It doesn't even show up on Multi Charts but it does compile successfully)

Any tips will help me get through this fuss. Thank you Kindly.

inputs:
Price( Close ),
Standard(26),
Turning(9),
Capital( 10000 ),
PositionBasis( false ),
AmountSTOP( 250 ),
AmountPROF( 1000 );


variables:
Turnline( 0 ),
StdLine( 0 ),
Equity( 0 ),
ShareAmount( 0 );

StdLine = (Highest(High, Standard) + Lowest(Low, Standard)) / 2;
TurnLine = (Highest(High, Turning) + Lowest(Low, Turning)) / 2;

if CurrentBar > 1 and turnline crosses over stdline then
buy ( "Buy" ) ShareAmount shares next bar at market;

if CurrentBar > 1 and turnline crosses under stdline then
sell ( "Sell" ) ShareAmount shares next bar at market;


if PositionBasis then
SetStopPosition
else
SetStopShare ;

SetProfitTarget( AmountPROF ) ;


if PositionBasis then
SetStopPosition
else
SetStopShare ;

SetStopLoss( amountSTOP ) ;

Started this thread Reply With Quote

Can you help answer these questions
from other members on futures io?
If ES tracks SPX, why do support/resistance, Level 2, vo …
Emini and Emicro Index
Second Entry Indicator (Looking for testers/feedback)
NinjaTrader
Short Interest Ratio indicator?
ThinkOrSwim
Indicators for pair trading MES and M2K
Platforms and Indicators
ZigZag with Depth and Backstep
EasyLanguage Programming
 
Best Threads (Most Thanked)
in the last 7 days on futures io
Selling Options on Futures?
109 thanks
Battlestations: Show us your trading desks!
108 thanks
Rank your Futures vs Stocks trading priority
55 thanks
Want your NinjaTrader indicator created, free?
27 thanks
Whats this confusion with margins?
21 thanks
 
(login for full post details)
  #3 (permalink)
TORONTO
 
Experience: Advanced
Platform: multi charts
Trading: crude cl
 
simon14's Avatar
 
Posts: 17 since Sep 2016
Thanks: 9 given, 4 received


inputs:
Standard(52),
Turning(18),
Stop_Loss(500),
Take_Profit(500);

Variables:
StdLine(0),
TurnLine(0);

StdLine = (Highest(High, Standard) + Lowest(Low, Standard)) / 2;
TurnLine = (Highest(High, Turning) + Lowest(Low, Turning)) / 2;

condition1 = Turnline crosses_below StdLine;
condition2 = Turnline crosses_above StdLine;


if condition1 then begin
Sell("SE") next bar at open;
end else if condition2 then begin
buytocover("Cover") next bar at open;
end;


Feel like this is much better now except iam having issues writing the conditions.

Started this thread Reply With Quote
 
(login for full post details)
  #4 (permalink)
 
 
Posts: 2,230 since Apr 2013
Thanks: 409 given, 1,471 received

simon14,

for your first post, you sent orders with a size of 0 (ShareAmount = 0), those won't show up.

For your second post, what are the issues you are having with writing the conditions?

Regards,

ABCTG

Follow me on Twitter Reply With Quote
The following user says Thank You to ABCTG for this post:
 
(login for full post details)
  #5 (permalink)
TORONTO
 
Experience: Advanced
Platform: multi charts
Trading: crude cl
 
simon14's Avatar
 
Posts: 17 since Sep 2016
Thanks: 9 given, 4 received

lmao wow.. thank you ABCTG solved ! thanks bud !

Started this thread Reply With Quote


futures io Trading Community Platforms and Indicators EasyLanguage Programming > Strategy Not Plotting


Last Updated on September 29, 2016


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Battlestations! Show us your trading desk - $1,500 in prizes!

March
 

Importance of Finding Your Own Way w/Adam Grimes

Elite only
 

Journal Challenge w/Jigsaw

April
     



Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, 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