Traderji.com


Amibroker formula coading help required

Discuss Amibroker formula coading help required at the Advanced Trading Strategies within the Traderji.com; Dear traders , i required help on afl coading for exitprice that is if i ...


Go Back   Traderji.com > METHODS & STRATEGIES > Advanced Trading Strategies


Advanced Trading Strategies Discuss Advanced Trading Systems & Strategies.


Reply
 
Thread Tools
  #1  
Old 15th October 2016, 11:13 PM
Member
 
Join Date: Oct 2016
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
balakumaran is on a distinguished road
Default Amibroker formula coading help required

Dear traders ,
i required help on afl coading for exitprice that is if i exit my position in multiple condition then in backtest report it showing close price of that candel.but i required exact price of what my condition. for example if my condition is cross(prevdayc,l) or (h < prevdayc) or (c < ma(period,c) ; position will exit when low crossing prevdayc actual exit price is prevdayc and like this other cond also.but backtest report will show close of the candel .how to correct this .
Reply With Quote

Looking for a share broker?

Name:Phone:
Email:City:
State:
Are you a day trader?
  #2  
Old 3rd November 2016, 12:22 PM
Member
 
Join Date: Oct 2016
Posts: 48
Thanks: 10
Thanked 17 Times in 12 Posts
vishp127 is on a distinguished road
Default Linsupertrend and PSA (Price Speed Acceleration)

Quote:
Originally Posted by vishp127 View Post
I would like to know MS Excel formula for below mentioned indicators:

Linsupertrend

Factor=param("Factor",3,1,3,1);

Pd=Param("ATR Periods",10,1,100,1);


Up = LinearReg((H+L)*0.5,Pd) + Factor*ATR(Pd);
Dn = LinearReg((H+L)*0.5,Pd) - Factor*ATR(Pd);

iATR=ATR(Pd);

PSA (Price Speed Acceleration)

//---- indicator buffers

extern int period = 240;
extern bool show_speed = TRUE;

int limit;

double speed[];
double acceleration[];

//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
//---- indicators
IndicatorBuffers(2);

//---- drawing settings

if (show_speed == TRUE){

SetIndexStyle(0,DRAW_HISTOGRAM);

}else{

SetIndexStyle(0,DRAW_NONE);
}
SetIndexBuffer(0,speed);
SetIndexStyle(1,DRAW_LINE);
SetIndexBuffer(1,acceleration);
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----

//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start()
{
int counted_bars=IndicatorCounted();
int i;
//----

if(counted_bars>0) counted_bars--;
limit=Bars-counted_bars;

for(i=0; i<limit; i++) {
speed[i] = iClose(Symbol(),0,i)-iClose(Symbol(),0,i+period);
}

for(i=0; i<limit; i++) {
acceleration[i] = speed[i]-speed[i+period];
}

//----
return(0);
I need help with above..
Reply With Quote
  #3  
Old 3rd November 2016, 04:50 PM
vijkris's Avatar
Member
 
Join Date: Mar 2013
Location: hyderabad
Posts: 3,656
Thanks: 15,668
Thanked 7,802 Times in 2,922 Posts
vijkris has a reputation beyond reputevijkris has a reputation beyond repute
vijkris has a reputation beyond reputevijkris has a reputation beyond reputevijkris has a reputation beyond reputevijkris has a reputation beyond reputevijkris has a reputation beyond reputevijkris has a reputation beyond reputevijkris has a reputation beyond reputevijkris has a reputation beyond reputevijkris has a reputation beyond reputevijkris has a reputation beyond reputevijkris has a reputation beyond reputevijkris has a reputation beyond repute
Default Re: Amibroker formula coading help required

Quote:
Originally Posted by balakumaran View Post
Dear traders ,
i required help on afl coading for exitprice that is if i exit my position in multiple condition then in backtest report it showing close price of that candel.but i required exact price of what my condition. for example if my condition is cross(prevdayc,l) or (h < prevdayc) or (c < ma(period,c) ; position will exit when low crossing prevdayc actual exit price is prevdayc and like this other cond also.but backtest report will show close of the candel .how to correct this .
This happens because in ur formula u did not mention sellprice/coverprice.
U just mentioned sell/cover.
The exit will happen according to ur condition but since sellprice is missing, it ll take close of the candle as exit price.
Reply With Quote
  #4  
Old 14th November 2016, 12:49 PM
Member
 
Join Date: Oct 2016
Posts: 48
Thanks: 10
Thanked 17 Times in 12 Posts
vishp127 is on a distinguished road
Default Re: Amibroker formula coading help required

Quote:
Originally Posted by balakumaran View Post
Dear traders ,
i required help on afl coading for exitprice that is if i exit my position in multiple condition then in backtest report it showing close price of that candel.but i required exact price of what my condition. for example if my condition is cross(prevdayc,l) or (h < prevdayc) or (c < ma(period,c) ; position will exit when low crossing prevdayc actual exit price is prevdayc and like this other cond also.but backtest report will show close of the candel .how to correct this .
I am not sure if this can answer your question..
http://www.marketcalls.in/afl-code/s...ploration.html
Reply With Quote
  #5  
Old 27th November 2016, 04:18 AM
Member
 
Join Date: Oct 2016
Posts: 48
Thanks: 10
Thanked 17 Times in 12 Posts
vishp127 is on a distinguished road
Default Amibroker afl coding help required

Whenever I press Explore button, I want this afl to display only 1 symbol in Automatic Analysis window out of watchlist. Something is missing there, please help me..

wlnum = GetOption( "FilterIncludeWatchlist" );
List = CategoryGetSymbols( categoryWatchlist, wlnum ) ;

if ( Status("stocknum") == 0 )
{
StaticVarRemove( "rank*" );

for ( n = 0; ( Symbol = StrExtract( List, n ) ) != ""; n++ )
{
SetForeign ( symbol );
values = Roc( Close, 10 );
RestorePriceArrays();
StaticVarSet ( "valuesToSort" + symbol, values );
}

StaticVarGenerateRanks( "bot", "valuesToSort", -1, 1234 );
}

symbol = Name();

rank = StaticVarGet ( "rank" + "values" + symbol );

AddColumn ( rank, "AbsValues" );

Filter = rank <= 1;

Last edited by vishp127; 27th November 2016 at 04:29 PM.
Reply With Quote
Advertisements
  #6  
Old 27th November 2016, 06:51 PM
Member
 
Join Date: Oct 2016
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
balakumaran is on a distinguished road
Default Re: Amibroker formula coading help required

thanks ..... to all for your replies and help and i solved my problem by using iff condition . buy price = iff( )...iff ( ) like that.
Reply With Quote
  #7  
Old 28th November 2016, 06:35 PM
Member
 
Join Date: Aug 2006
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
BURAN is on a distinguished road
Smile Re: Amibroker formula coading help required

dear sir, how is amibroker software? how is its scanning and exploration facilities? I am seriously thinking to buy amibroker software and e signal data.

regards. buran,
Reply With Quote
  #8  
Old 20th December 2016, 08:23 PM
Member
 
Join Date: Sep 2011
Posts: 18
Thanks: 1
Thanked 3 Times in 2 Posts
pawarganesh is on a distinguished road
Default Re: Amibroker formula coading help required

Amibroker is really good, I have used multiple charting softwares but the kind of flexibility and power you can get in Amibroker is Unique. It is also super fast and easy to code with tons of examples all around.

I have licenses Amibroker v 6.10 and I will certainly recommend Buying it as it is worth it. In terms of Data you dont need e-signal, there are many cheaper options available that provide tick data at around 500 Rs per segment per month. That works well with Amiboker.

Happy Trading.
Ganesh
Reply With Quote
The Following 2 Users Say Thank You to pawarganesh For This Useful Post:
TracerBullet (20th December 2016), vijkris (23rd December 2016)
Reply

Bookmarks


Advertise Here

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads for: Amibroker formula coading help required
Thread Thread Starter Forum Replies Last Post
Required the Formula of IV of Benjamin Graham ehtsm Fundamental Analysis 9 3rd September 2015 01:05 PM
Help required in modifying this formula for Buy / Sell rbhapkar AmiBroker 1 1st September 2011 09:34 PM
Formula for MetaStock V10.1 is required pkgmtnl MetaStock 3 1st March 2009 10:49 PM
Required metastock formula pra MetaStock 2 12th January 2009 03:01 PM
Weekly formula required purvija99 MetaStock 2 22nd August 2008 11:43 AM


All times are GMT +5.5. The time now is 12:33 PM.

Indemnity, Disclaimer & Disclosure Notice:
* By visiting Traderji.com you automatically indicate that you agree to our Forum Rules, Indemnity, Disclaimer & Disclosure Notice and General Content Disclaimer Notice and indemnify Traderji.com, its associates and related parties of all claims howsoever resulting from the usage of the forum/site.
* Disclaimer: Trading or investing in stocks & commodities is a high risk activity. Any action you choose to take in the markets is totally your own responsibility. You are recommended to make appropriate enquiries and seek appropriate advise before sending money, incurring any expenses, acting on recommendations or entering into any commitment in relation to any advertisement published here. Traderji.com does not vouch for any claims made by the advertisers of products and services. Traderji.com will not be held liable for any consequences in the event such claims are not honoured by the advertisers. Traderji.com will not be liable for any, direct or indirect, consequential or incidental damages or loss arising out of the use of any information by anybody mentioned anywhere on this site.
* Disclosure: The information in this forum is neither an offer to sell nor solicitation to buy any of the securities mentioned herein. The writers may or may not be trading in the securities mentioned.
* All names or products mentioned are trademarks or registered trademarks of their respective owners.
General Content Disclaimer Notice:
In light of our policy of encouraging candid, open exchanges of views and the rapid distribution of information originating from many sources, Traderji.com cannot determine the accuracy or legality of any information that may be uploaded to the forum. Opinions, advice and all other information expressed by participants in discussions are those of the author. You rely on such information at your own risk. You are urged to seek professional advice for specific, individual situations and not rely solely on advice or opinions given in the discussions. Since Traderji.com is an open and free discussion forum, any comments made by members of this forum in their posts reflect their own views and not of the owner or administrator of Traderji.com. Thus the owner/administrator indemnify themselves of all claims whatsoever and will not be liable or responsible for any members comments/views in this forum Traderji.com. Although we constantly delete all irrelevant content and/or SPAM, if you should find any objectionable or offensive posts made by members of this forum which you would like to bring to our notice for removal then please Contact Us.
 


Our Partner Websites: www.chittorgarh.com, IPO Investment Portal | www.topsharebrokers.com, Broker Comparision
Copyright © www.Traderji.com 2001 - , All rights reserved.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271