 Trading System to be regularized - EasyLanguage Programming | futures io social day trading Updated: February 11th, 2020 (01:38 AM) Views / Replies: 125 / 4 Created: February 9th, 2020 (05:23 AM) by Shaban Attachments: 0

 Welcome to futures io.

# Trading System to be regularized

 February 9th, 2020, 05:23 AM Quick Summary Quick Summary Post Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

Market Wizard
Cleveland Ohio/United States

Favorite Futures: futures

Posts: 2,696 since Jul 2012 Hello, good day everyone. I found this Trading System in my archive, and I would like to test it, but Tradestation 2000i reports errors. The formula of the T.S. it's the following: ------------------------------------------------- Input: Per(30), Length(1), Per2(8), Per3(21); Vars: Acceleraz1(false), Acceleraz2(false), ave(0); Ave = XAverage(MACD(C, 10, 25), 10); If adx(Per) <> 0 and adx(Per)[Length] <> 0 Then begin value1 = (absvalue(ADX(Per) - ADX(Per)[Length])/ADX(Per)[Length])*100; if Average(C, per2)[Length] <> 0 and Average(C, Per2) <> 0 then value2 = (absvalue(Average(C, Per2)-Average(C, per2)[Length])/ Average(C, per2)[Length])*100; if Average(C, per3)[Length] <> 0 and Average(C, Per3) <> 0 then value3 = (absvalue(Average(C, Per3)-Average(C, per3)[Length])/ Average(C, per3)[Length])*100; if value1 > value1*3 Then Begin if value2 > value3 and MACD(C, 10, 25) < Ave then Buy next bar {Highest(H, 5) Limit}O; if value2 < value3 and MACD(C, 10, 25) > Ave Then Sell next bar {Lowest(L, 5) Limit}O; end; end else value1 = 0; if Marketposition = 1 and MACD(C, 10, 25) > Ave Then ExitLong ("LX") next bar at market; if Marketposition = -1 and MACD(C, 10, 25) < Ave Then Exitshort ("SX") next bar at market; ----------------------------------------------------- If anyone can correct the formula, I thank you in advance.

This modification verifies...

Input: Per(30), Length(1), Per2(8), Per3(21);
Vars: Acceleraz1(false), Acceleraz2(false), ave(0);

Ave = XAverage(MACD(C, 10, 25), 10);

if Average(C, per2)[Length] <> 0 and Average(C, Per2) <> 0 then
value2 = (absvalue(Average(C, Per2)-Average(C, per2)[Length])/ Average(C, per2)[Length])*100;

if Average(C, per3)[Length] <> 0 and Average(C, Per3) <> 0 then
value3 = (absvalue(Average(C, Per3)-Average(C, per3)[Length])/ Average(C, per3)[Length])*100;

if value1 > value1*3 Then Begin
if value2 > value3 and MACD(C, 10, 25) < Ave then Buy next bar {Highest(H, 5) Limit}O;
if value2 < value3 and MACD(C, 10, 25) > Ave Then Sell next bar {Lowest(L, 5) Limit}O;
end;

end
else value1 = 0;

if Marketposition = 1 and MACD(C, 10, 25) > Ave Then sell ("LX") next bar at market;
if Marketposition = -1 and MACD(C, 10, 25) < Ave Then buytocover ("SX") next bar at market;

 The following 3 users say Thank You to kevinkdog for this post:

 February 9th, 2020, 02:09 PM Turin + Italy     Posts: 10 since Feb 2020 Thanks: 2 given, 0 received Trading System to be regularized All right. Thank you very much. Last edited by Shaban; February 9th, 2020 at 02:12 PM. Reason: Insert smilies

 futures io > Trading System to be regularized Upcoming Webinars and Events (4:30PM ET unless noted)

Right now

## \$250 Amazon Gift Cards with our "Thanks Contest" challenge!

Right now Similar Threads Thread Thread Starter Forum Replies Last Post kanepa Trading Journals 136 February 1st, 2020 08:09 AM webtrading Hire a Consultant or Programmer 0 November 20th, 2017 02:57 PM jlwade123 Elite Trading Journals 893 November 12th, 2015 03:09 AM mkaminski NinjaTrader Programming 10 October 17th, 2011 12:23 PM iwannatoscript NinjaTrader Programming 3 March 4th, 2010 08:38 PM  