Recent Posts

Pages: [1] 2 3 ... 10
1
General Discussion / computer hardware sales and service in jaipur
« Last post by jaya33 on August 22, 2017, 02:57:52 am »
computer hardware sales and service in jaipur
http://www.jicsindia.com/

Jics arena training institute – certified it & hardware courses for bright career of students
Laptop Service Centre in Jaipur is a professional Laptop repair centre, in the Rajasthan offers a comprehensive range of Laptop Services in Jaipur We repair and upgrade services along with friendly customer service. Our team of experienced technicians and hardware engineers can repair, service and upgrade laptop & desktop both.We can have your laptop/desktop problems fixed in less than a day and at times while you wait depends on condition.
2
General Discussion / De-Addiction Treatment Center in Delhi
« Last post by jaya33 on August 22, 2017, 02:57:09 am »
Drug Rehab - De-Addiction Treatment Center in Delhi
http://www.nvsindia.in/
NVS India is provides treatment and drug rehabilitation for alcohol and drugs addicts. Contact to Nasha Mukti Kendra in delhi, India Call +91 9828155322
3
General Discussion / Website Design and Web Development
« Last post by jaya33 on August 22, 2017, 02:56:38 am »
Website Design and Web Development Jaipur
http://www.gitinfosys.com/
Being a website designing and web development company in Jaipur GIT Infosys will become your end to end partner to get your business online.
4
General Discussion / gift and cake delivery
« Last post by jaya33 on August 22, 2017, 02:55:57 am »
Here we introduce our online flower, gift and cake delivery in below Indian cities with same day delivery and free shipping facilities. So come an shop with us.
Send flowers to Patna @ http://www.chakori.in
Online cake delivery in Delhi @ http://www.bhadrusha.in
Online cake delivery in Bangalore @ http://www.jasum.in
Send flowers to Noida @ http://www.janisha.in
Send Flowers to Gurgaon @ http://www.gandhali.in
Online cake delivery in Surat @ http://www.deepta.in
Online cake delivery in Nagpur @ http://www.chitrita.in
Online flower delivery in Amritsar @ http://www.koyna.co.in
Online cake delivery in Faridabad @ http://www.hridya.in
Flower and gift delivery in Kochi @ http://www.indukala.in
5
Hello Sir,

I need a help for developing a trailing stoploss codes for AFL (AMIBROKER). The trailing stoploss line shall be based on Low of preceding low of candle (for BUY ) and High of Preceding candles(in case  of SHORT). This Trailing SL Line shall come up as soon as BUY / SHORT triggers as per Strategy.
 
The conditions for Generating Trailing SL without any Profits Targets (No Profit Targets, It will move in Trending Directions till it is HIT or SELL / COVER conditions as per Strategy whichever comes first is met with)
 
The Entry Conditions are already in Strategy. So, this proposed AFL only be based on LOW/ HIGH of candles set in for  at BUY/ SHORT coming in.

 1. The Trailing SL in case of BUY would be as follows:-
·         After first BUY is implanted (let it be candle 1);
·         The First Trailing SL line shall begun from low of 5th Candle i.e. candle (-5) to candle 1(buy Candle);
·         Then,  Trailing SL line should wait for next 5 candles to complete first before commencing to draw Trailing SL line upwards in case of BUY;
·         Thereafter trailing SL shall move upwards in steps of  5 candles (i.e. low -5 candle shall be trailing SL)
·         Incase SELL or Trailing SL whichever comes first as per Strategy logic, it would Square and move ahead or wait for next SHORT/ BUY.
 
2.      The Trailing SL in case of SHORT would be as follows:-
·         After first SHORT is implanted (let it be candle 1);
·         The Fist Trailing SL line shall begun from high of 5th Candle i.e. candle (-5) to candle 1(SHORT Candle);
·         Then,  Trailing SL line should wait for next 5 candles to complete first before commencing to draw Trailing SL line downwards in case of SHORT;
·         Thereafter trailing SL shall move downwards in steps of  5 candles (i.e. low -5 candle shall be trailing SL)
·         Incase COVER or Trailing SL whichever comes first as per Strategy logic, it would Square and move ahead or wait for next SHORT/ BUY.

These codes can then be inserted at right place to have it functional for all type of strategy having codes for BUY/ SHORT/ SELL/ COVER

Any 1 helping in it would be great help.
6
Amibroker Help / Re: count bars intrade combined with dual sell signal
« Last post by administrator on July 18, 2017, 02:17:26 am »
You are trying to use BarsInTrade before it is even calculated.  Try doing something along these lines:

Code: [Select]
Buy =  RSI(2) < 20;
Sell = (BarsSince(Buy) < 10 AND RSI(2) > 70) OR (BarsSince(Buy) >= 10 AND RSI(2) > 90);
7
Amibroker Help / count bars intrade combined with dual sell signal
« Last post by gerard on July 17, 2017, 07:25:48 am »
Hi

I am looking for some help. I would like to create a sell signal which is based on the number of days in a trade. I have found some code how to count the number of days but now I have to adjust it to what I want and I am unable to solve this puzzle . The code below is not working, as I think I am not coding in the right order ( and also want to count properly with days in trade)
Code: [Select]
// Sample system
// Buy RSI(2) is smaller than 20
// Sell if number of days  intrade < 10 AND RSI(2)>70
// Sell if Number of days intrade => 10 and RSI(2) > 90


Buy =  RSI(2) < 20;
Sell = (BArsintrade < 10 AND RSI(2)> 70) or (BArsintrade => 10 AND RSI(2)>90)


BarsInTrade = 0;
for( i = 0; i < BarCount; i++ )
{
  // if in-trade, then increase bar counter
  if( BarsInTrade > 0 ) BarsInTrade ++;
  else
  if( Buy[ i ] ) BarsInTrade = 1; // on buy signal start counting bars-in-trade
 
  // dont understand how I can remove sells occurring too soon

  if( Sell[ i ] ) BarsInTrade = 0; // on sell reset barsintrade flag
}


Any help is highly appriciated!

Thanks

Gerard
8
Amibroker Help / Lower Time frame Value to higher Time frame
« Last post by pinankt on July 12, 2017, 01:13:42 pm »
Hi All,
I am new to the forum and Amibroker Coding.

I  am looking to
Plot          :plot "Sell" text on the hourly chart, it is the same graph on which I have price candles plotted
Condition : if on the 5 min chart Rsi 14 falls below 50
I want to do this using a function with an include option.

I have tried a few things.
function rsicheck()
{
rsivalue = LastValue(RSI(14));
hprice=HHV(H,5);

if(rsivalue < 50)
{
PlotText("Sell "+ rsivalue, LastValue(BarIndex())-20,LastValue(hprice)+10,colorRed);
}

if(rsivalue > 51)
{
PlotText("buy "+rsivalue, LastValue(BarIndex())-20,LastValue(hprice)+10,colorGreen);
}
}


I am calling this function in another alf which has #include <myfunctions.afl>
there I am doing

TimeFrameSet(in5Minute);
rsicheck();
TimeFrameRestore();

Some how the values are not matching.


PLs help.
9
Amibroker Help / Re: Hold Min Bars
« Last post by drakul on June 27, 2017, 11:52:07 am »
So, how to ignore the buy signals for the "n" number of bars?
10
Introduction / Newbie from Malaysia
« Last post by RyanFX on June 26, 2017, 10:36:28 pm »
Dear friends,

I am Ryan from Malaysia. I consider myself as newbie coz i have been trading Forex for past 6 months. I would like to learn how to start trading stocks in NYSE....

Nice to meet you all  :) :) :)
Pages: [1] 2 3 ... 10