Trading Articles
Article Categories
Article Tools
Strategy Not Plotting
Updated September 29, 2016
trending_up
820 views
thumb_up
1 thanks given
group
2 followers
forum
4 posts
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)
(login for full post details)
#1 (permalink )
TORONTO
Experience: Advanced
Platform: multi charts
Trading: crude cl
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 ) ;
Can you help answer these questions from other members on futures io?
Best Threads (Most Thanked) in the last 7 days on futures io
(login for full post details)
#3 (permalink )
TORONTO
Experience: Advanced
Platform: multi charts
Trading: crude cl
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.
(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
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
Posts: 17 since Sep 2016
Thanks: 9 given,
4
received
lmao wow.. thank you ABCTG solved ! thanks bud !
Last Updated on September 29, 2016
Right now
Ongoing
Right now
March
Register to Attend
Elite only
Coming soon
April