Closed

Translate Tradestation to Java - Fast project

This project received 13 bids from talented freelancers with an average bid price of $52 USD.

Get free quotes for a project like this
Employer working
Project Budget
$30 - $250 USD
Total Bids
13
Project Description

Hello,

This is a very small and very fast project. I'm looking for someone to translate a piece of Easylanguage code to Java.

You should provide me with a java method SVAPO that takes double[] as input and returns upper band and lower band.

I can also provide moving average code in java if you need.

public double[] SVAPO(double[] open, double[] high, double[] low, double[] close, double[] volume){

//Translate easylanguage code

//...

result[0] = upperBand;

result[1] = loweBand;

return result;

}

Here is the Easylanguage code:

Algorithm: Volume and Price Oscillator (SVAPO)

SVAPO(Period=8, Cutoff=1, StDevH=1.5, StDevL=1.3, StDevPeriod=100)

//Vervoort’s Heiken-Ashi is smoothed short-term price trend

AP = AVGPRICE; // (O+H+L+C)/4

haO =0.5*(AP[1]+haO[1]);

haCl =[url removed, login to view]*(AP+haO+MAXLIST(AP,MAXLIST(High,haO)) + MINLIST(AP,Minlist(Low,haO)));

haC = TEMA(haCl,[url removed, login to view]*Period); //triple exponential moving ave of Heiken-Ashi close

//volume delta at each price (handle volume extremes)

VolumeValue = IFF(BarType<2, Ticks, Volume);

VAvg = AVERAGE(VolumeValue[1],5*Period);

VMax = 2*VAvg;

Vc = IFF(VolumeValuehaC[1] * (1 +([url removed, login to view]*Cutoff)) and COUNTIF(VTrend >= VTrend[1],2)=2;

Dn = haC<haC[1] * (1 -([url removed, login to view]*Cutoff)) and COUNTIF(VTrend <= VTrend[1],2)=2;

//SVAPO is triple exponential moving average of the summation of volume

//each day’s volume contribution depends on trend for that day

//UP days add the volume, DOWN days you subtract volume for that day from the sum

DELTA_SUM= SUMMATION(IFF(Up,Vc,IFF(Dn,-Vc,0)),Period)/(VAvg+1)

SVAPO = TEMA(DELTA_SUM,Period);

//dynamic bands using standard deviation of SVAPO over time

UpperBand = StDevH*STDDEV(SVAPO, StDevPeriod);

LowerBand = -StDevL*STDDEV(SVAPO, StDevPeriod);

Thanks

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online