Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: fncharts plotting buy sell signal codes please resolve it

  1. #1
    Junior Member
    Join Date
    Oct 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default fncharts plotting buy sell signal codes please resolve it

    this the code that can get buy sell signal in a graph (fncharts) i am new to java and please let me know what is worng with my code here



    var n = Param(1);
    var max = Max(High(),n);
    var min = Min(Low(),n);
    var close = Close();
    var percentR = CreateArray(max.length);
    var avd = if((i>max) && (i<min));
    var avn = if(avd!=0,avd,1);
    var tsl = if(avn==1,max,min);
    AddGraph(tsl,-0.05,100);
    var begin=Param(2)+Param(3);
    for(var i=begin; i<percentR.length; i++){
    if((percentR[i-1] < signal[i-1]) && (percentR[i]>signal[i]))
    AddBuySignal(i);
    else
    if((percentR[i-1] > signal[i-1]) && (percentR[i]<signal[i]))
    AddSellSignal(i);



    Thanks in advance


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,320
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: fncharts plotting buy sell signal codes please resolve it

    Please see the link in my signature entitled 'getting help'

  3. #3
    Junior Member
    Join Date
    Sep 2017
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: fncharts plotting buy sell signal codes please resolve it

    Hi
    Could you please share me the fnCharts jar file

    --- Update ---

    Quote Originally Posted by copeg View Post
    Please see the link in my signature entitled 'getting help'
    Hi Could you please share me the fncharts code

Similar Threads

  1. ArrayList Plotting Points
    By basketball8533 in forum Collections and Generics
    Replies: 1
    Last Post: October 18th, 2011, 03:59 PM
  2. Plotting updated graph continuously
    By sudhan in forum Java Theory & Questions
    Replies: 0
    Last Post: October 17th, 2011, 09:28 PM
  3. I like plotting points :) HI!
    By fractalorbit in forum Member Introductions
    Replies: 1
    Last Post: September 5th, 2011, 10:49 AM
  4. USB signal
    By mp3rara in forum Java Networking
    Replies: 3
    Last Post: May 6th, 2011, 03:57 AM
  5. Plotting w/JFreeCharts
    By Javajava in forum What's Wrong With My Code?
    Replies: 0
    Last Post: May 12th, 2010, 10:02 AM