Strategy Not Plotting - EasyLanguage Programming | futures.io
futures io futures trading


Strategy Not Plotting
Started: by simon14 Views / Replies:167 / 4
Last Reply: 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

Reply
 
Thread Tools Search this Thread
 

Strategy Not Plotting

  #1 (permalink)
Elite Member
TORONTO
 
Futures Experience: Advanced
Platform: multi charts
Favorite Futures: crude cl
 
simon14's Avatar
 
Posts: 13 since Sep 2016
Thanks: 5 given, 2 received

Strategy Not Plotting

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 ) ;

Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
Elite Member
TORONTO
 
Futures Experience: Advanced
Platform: multi charts
Favorite Futures: crude cl
 
simon14's Avatar
 
Posts: 13 since Sep 2016
Thanks: 5 given, 2 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.

Reply With Quote
 
  #4 (permalink)
Elite Member
Hamburg Germany
 
Futures Experience: Advanced
Platform: Multicharts, Tradestation, Multicharts.NET, NinjaTrader, MetaTrader
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 1,261 since Apr 2013
Thanks: 201 given, 713 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

Reply With Quote
The following user says Thank You to ABCTG for this post:
 
  #5 (permalink)
Elite Member
TORONTO
 
Futures Experience: Advanced
Platform: multi charts
Favorite Futures: crude cl
 
simon14's Avatar
 
Posts: 13 since Sep 2016
Thanks: 5 given, 2 received

Futures Edge on FIO
lmao wow.. thank you ABCTG solved ! thanks bud !

Reply With Quote

Reply



futures io > > > > > Strategy Not Plotting

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Spring Grains Outlook w/Sean Lusk @ Walsh Trading

Elite only

FIO Video Journal Challenge featuring NinjaTrader ($2,000+ of prizes)

April

Process above all else w/Anthony Crudele @ Futures Radio Show

Elite only

Machine Learning - Quantitative Trading w/Martin Froehler @ Quantiacs

Elite only

Market Dynamics w/Peter Davies @ Jigsaw Trading

Elite only

Ask Me Anything w/Patrick Rooney @ Trading Technologies

Apr 18

Ask Me Anything w/FuturesTrader71

Apr 19

Machine Learning w/Kris Longmore

Elite only

Market Analysis w/Dave Forss

Apr 25

Introducing iSystems with Stage 5 Trading

Apr 27
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom plotting BrazilForever Platforms and Indicators 2 February 26th, 2015 09:29 PM
Plotting Data Points golb0016 EasyLanguage Programming 3 February 17th, 2014 05:42 PM
Plotting change. Easy? traderjh NinjaTrader Programming 1 January 30th, 2014 06:53 PM
Is Apple Plotting Against Your Old iPhone? Quick Summary News and Current Events 0 November 1st, 2013 04:30 PM
Plotting options Bespoke Options on Futures 8 December 11th, 2011 05:59 PM


All times are GMT -4. The time now is 03:16 PM.

no new posts
Page generated 2017-03-29 in 0.09 seconds with 19 queries on phoenix via your IP 54.147.200.51