Help needed in coding afl - AmiBroker | futures io social day trading
futures io futures trading


Help needed in coding afl
Updated: Views / Replies:706 / 0
Created: by milkysahai001 Attachments:0

Welcome to futures io.

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

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you dont need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • 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.

-- Big Mike, Site Administrator

Reply
 
Thread Tools Search this Thread
 

Help needed in coding afl

  #1 (permalink)
Trading Apprentice
Agra+India
 
Futures Experience: Beginner
Platform: MultiCharts, AmiBroker
Favorite Futures: Stock Futures
 
Posts: 42 since Sep 2016
Thanks: 17 given, 3 received

Help needed in coding afl

below is my simple stochastics strategy.i am using this on symphony presto amifuse trading on this bar close price.
i want the trades to take place on next bar open price. but not able to do so. i have also attached the code for presto amifuse- for signal generation.
please help me in getting signals on next bar open.


P=Param("Periods", 14, 5, 30, 1);
PD=Param("Oscillator Avg", 3, 3, 30, 1);
PD1=Param("Smooth1", 3, 3, 30, 1);

res=HHV(H,P);
sup=LLV(L,P);
avd=IIf(C>Ref(res,(RP*-1)), 1, IIf(C<Ref(sup,(RP*-1)), -1, 0));
avn=ValueWhen(avd!=0,avd,1);
tsl=IIf(avn==1,sup,res);
Plot(tsl, "trend", colorWhite, styleStaircase);

A=Close;
B=(A-LLV(L,P))/(HHV(H,P)-LLV(L,P));
D=MA(B,PD);
D1=MA(D, PD1);

Buy=((Cross(D, D1) AND avn==1));
Sell=D<D1;
Short=((Cross(D1, D) AND avn==-1));
Cover=D>D1;

Buy=ExRem(Buy, Sell);
Sell=ExRem(Sell, Buy);
Short=ExRem(Short, Cover);
Cover=ExRem(Cover, Short);

PlotShapes(IIf(LongSignal, shapeUpArrow, shapeNone), colorWhite);
PlotShapes(IIf(ShortSignal, shapeDownArrow, shapeNone), colorYellow);
PlotShapes(IIf(Sellsignal, shapeStar, shapeNone), colorYellow);
PlotShapes(IIf(CoverSignal, shapeStar, shapeNone), colorWhite);

_SECTION_BEGIN("presto1");
a2=(Sell);
a4=(Cover);
a1=(Buy);
a3=(Short);
a5=Ref(C,-1);
a6=Ref(C,-1);
a7=0;

if(a2[BarCount-2]==1)
{
SellToFuse(a5[BarCount-1],a6[BarCount-2]);
}

if(a4[BarCount-2]==1)
{
CoverToFuse(a5[BarCount-1],a6[BarCount-2]);
}

if(a1[BarCount-2]==1)
{
BuyToFuse(a5[BarCount-1],a7[BarCount-2]);
}
if(a3[BarCount-2]==1)
{
ShortToFuse(a6[BarCount-1],a7[BarCount-2]);
}
_SECTION_END();

Reply With Quote

Reply



futures io > > > > Help needed in coding afl

Thread Tools Search this Thread
Search this Thread:

Advanced Search



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

Introducing daytradr by Jigsaw, new stand-alone platform

Oct 19
 

RandBots: AutoTrading Bots to diversify your trading

Oct 24
 

TopstepTrader: Profiting Without Risking Your Own Money

Oct 26

Building Open Source Indicators for NT8 w/Fat Tails @ Lizard Indicators

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
help needed in coding a variable in afl. milkysahai001 AmiBroker 7 May 10th, 2017 10:02 PM
Help needed for NT7 coding mphoenix NinjaTrader Programming 2 December 18th, 2016 05:41 PM
help needed in coding some variables in easy/powerlanguage! milkysahai001 MultiCharts 3 November 16th, 2016 04:49 AM
Little coding help needed Abde NinjaTrader 8 April 10th, 2014 11:45 AM
Stochastics coding help needed! RodS NinjaTrader Programming 33 October 24th, 2009 05:58 PM


All times are GMT -4. The time now is 07:58 PM.

Copyright © 2017 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
Page generated 2017-10-19 in 0.08 seconds with 21 queries on phoenix via your IP 54.224.50.28