NexusFi: Find Your Edge


Home Menu

 





code replacement with PL posible?


Discussion in EasyLanguage Programming

Updated
    1. trending_up 2,232 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 2 posts
    2. attach_file 0 attachments




 
Search this Thread

code replacement with PL posible?

(login for full post details)
  #1 (permalink)
siscop
germany
 
Posts: 19 since Sep 2009
Thanks Given: 16
Thanks Received: 4

Hi,
Just a few simple questions.
1. Is there a way to tell MC to open at open and close at the same bar close? I don’t have smaller data for intrabarbacktesting.
2. Is there a way to sum code together that comes up every time? Something like:
 
Code
#xxxpla:
begin
         Print(“ this is good”);
         Print(“this is bad”);
         Buy this bar on close;
         var0=var0+1;
  End;
And everytime I use the key “xxxpla” the code from begin to end will replace that. something like define or replacement.
So I can write
 
Code
If condition0 then
            xxxpla;
xxxpla will be replaced from PL automaticaly. Is something like that possible?

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
ISO Equity Curve Indicator
NinjaTrader
Volume profile TradeStation
EasyLanguage Programming
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
Trader Dale [email protected] or Scammer Dale
Trading Reviews and Vendors
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Tao te Trade: way of the WLD
30 thanks
GFIs1 1 DAX trade per day journal
28 thanks
Supertradersams Thread Journal on NQ/MNQ
26 thanks
Just another trading journal: PA, Wyckoff & Trends
12 thanks
1% Risk Journal
11 thanks

(login for full post details)
  #3 (permalink)
siscop
germany
 
Posts: 19 since Sep 2009
Thanks Given: 16
Thanks Received: 4


OK even when nobody wants to reply.
To Point no 1
I had to enter in the code from the Bar before the entrybar:
 
Code
if indi=1 and marketposition=0 then
        buy next bar at market;
and at the exitbar:
 
Code
if marketposition <>0 then
        sell this bar on close;
Probably to easy for you guys when you dont want to answer.

I still have the problem with the code replacement

Reply With Quote





Last Updated on January 20, 2011


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts