Jump to content

Welcome to the new Traders Laboratory! Please bear with us as we finish the migration over the next few days. If you find any issues, want to leave feedback, get in touch with us, or offer suggestions please post to the Support forum here.

  • Welcome Guests

    Welcome. You are currently viewing the forum as a guest which does not give you access to all the great features at Traders Laboratory such as interacting with members, access to all forums, downloading attachments, and eligibility to win free giveaways. Registration is fast, simple and absolutely free. Create a FREE Traders Laboratory account here.

Recommended Posts

Hi,

 

I'm trying to develop a strategy that switches between various securities. For example, suppose I want to buy jump back and forth between the SPY and TLT. Is this possible?

 

For a random example, suppose I want the following (where SPY = Data1 and TLT = Data2):

 

If c crosses above average(c, 10) then buy next bar at market;

If c crosses below average(c, 10) then sell next bar at market and buy data2 next bar at market;

 

Obviously this doesn't work in EasyLanguage, but I think it's clear what I want the strategy to do.

 

Is there a way this can happen?

 

Thanks for your help,

Investor

Share this post


Link to post
Share on other sites
HI,

You can achieve this by using PlaceorderMacro Function.

 

Hello EasyTrader,

 

Excellent to see that there is now someone else who is prepared to respond to EasyLanguage programming queries on TL - for a moment I thought I was the only one left, and that worried me because I'm not very good at it!

 

Look forward to more posts from you . . .

 

Kind regards,

 

BlueHorseshoe

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Similar Content

    • By millonmethod
      Hello everyone!
      I am an advanced trader, with many years of experience (about 15 years - 10 living exclusively from this)
      I am going to give you some tips that you must know:
      There are going to be many people who tell you that trade is easy, that with only crossiing a line  with another one you will win a lot of money.... and that´s not true.  No, Sir, reality is far away from that. Many people who start arrive here with the hope that someone "gives them" a free method, they watch youtube videos thinking that this will give them the "strategy" and in a few days they realize that it does not work for them - they lose money - and then They go looking for a new one ... and so on. YES, IT´S TRUE YOU EARN IN TRADING, A LOT. BUT THINK: for a few to win (10% + any BROKER) many others must lose (90% people). YOU MUST HAVE A MONEY MANAGMENT FORMULA ( you can email me) People study so many years to live on this, not because they are dumb, but to know what they do, when, and have absolute effectiveness. It´s very easy to get lost here: do not disperse, jumping from one to another strategy WILL NEVER give you money, it will only waste your time and make you nervous when trading. PEOPLE WHO CHANGE THEIR METHOD CONSTANTLY : LOOOOSE ALWAYS.   If you have the knowledge to develop it, take your time and do it.  Always try it first on DEMO for at least 2 weeks! If not: search to buy a solid strategy (no you tube videos pleassse ! Avoid losing money! ) This is like any business, it requires some capital to start (capital = money in the broker + solid made /purchased strategy) If you are lost: I RECOMMEND YOU NOT TO WASTE TIME IN YOUTUBE, JOIN PEOPLE WHO HAVE EXPERIENCE AND IF YOU ARE GOING TO BUY A METHOD ... PLEASE !!!! DO NOT BUY 10 BAD AND CHEAP METHODS, SAVE MONEY AND BUY ONLY 1 BUT EXCLUSIVE AND MUST ALLWAYS HAVE SUPPORT !!!!!  Do not buy Signals! They never keep up with constant profits! One week will win and the next will lose. Nothing that does not depend absolutely on you will give you the money you are looking for. And if you do not have a strategy (made or purchased) do not even try PLEASE PLEASE PLEASE: DO NOT USE REAL MONEY! AT LEAST 2 WEEK DEMO FREE HELP HERE!!!!!  IF YOU FOLLOW MY ADVICE YOU WILL BE PART OF THAT 10% WINNER, email me.
      Have a nice trading day
       
       
  • Topics

  • Posts

    • A History Of Consecutive -3% Days (Decline) https://seekingalpha.com/article/4327321-history-of-consecutiveminus-3-days by Ploutos CFA Summary The global spread of the coronavirus has pushed the S&P 500 down 3% on consecutive days. That is a fairly rare occurrence for markets with only 15 occurrences of consecutive down days of that magnitude since the Great Depression. When these types of consecutive down days occur outside of economic recessions, markets have tended to recover and move sharply higher over the next year. With the epidemic slipping towards a pandemic, the extent of economic damage remains unknown.  Markets are selling rich valuations and pricing in negative outcomes. +------------------------------------------------------------------------------+ The Difference this time is, the decline has occured after consecutively achieving market highs With the last Bear Market in 2008 The sharp pullback which the News is crediting it to the Virus How do a Technician Interpret on the Chart without the news  factor ? I would earmarked it as an first important indication (in built fear) occuring in the US President Election Year It would be better to review Gold & USD Chart for Safety and Fear What remains to be observed approaching US Presidential Election is;  If the Gold Price Continue to Hold & remain Higher and Will USD perform Strong With Historical Low Interest Rates Gold is Good Asset to offset Risk. Interesting thing to observe will be Cryptos and related Stocks & Technology I think some exposure to Crypto is Quintessential (Around the Sell in May and Go Away Season of Correction) Awaiting some opportunity ...........   .........   .......  ...... Play if Safe with Stop Loss but also some Protection in Place or Fear will provoke your primitive Mind and Take over.   Enjoy Minoo  
    • If you decide to trade with IC Markets or Pepperstone or any other cTrader brokers, you can use Quantower platform for it.   
    • Date : 24th February 2020 Events to Look Out For Next Week 24th February 2020.The economic data has been and will continue to be overshadowed by the Covid-19 outbreak. The week ahead starts light, with the German Business Sentiment Index and Chinese Retail Sales on Monday. Leading indicators dominate the releases, but the event of the week is the US GDP and Consumer Confidence, which should shed light on whether the epidemic is visible in the data globally.Monday – 24 February 2020 Japan – Emperor’s Birthday Retail Sales (CNY, GMT N/A) – China’s retail trade growth stood at 8 percent year-on-year in December 2019. However a strong decline is expected for January, following the recent releases indicating that new car sales plunged 92% in China in February and airline traffic is expected to post the first drop since 2011 amid heavy virus containment measures in China. German IFO (EUR, GMT 09:00) – The German Business Sentiment Index released by the CESifo Group is closely watched as an early indicator of current conditions and business expectations in Germany. February’s numbers are expected to incline. Tuesday – 25 February 2020 Leading Economic Index (JPY, GMT 05:00) – The index is expected to show no change in the outlook of the Japanese economy and stand at 91.6. Gross Domestic Product (EUR, GMT 07:00) – German GDP is expected to have fallen by 0.3% on an annualized rate in the last quarter of the year, compared to 1.0% growth in Q3. Conference Board Consumer Confidence (USD, GMT 15:00) – Consumer Confidence is expected to have increased to 132.4 compared to 131.6 in the previous month. Wednesday – 26 February 2020 New Home Sales (USD, GMT 15:00) – The housing recovery should extend into 2020, assuming that mortgage rates remain low and Fed policy remains accommodative. The January new home sales should post a 2.3% climb to a 710k pace, after a dip to a 694k rate in December, versus a 12-year high of 730k in September. Trade Balance (NZD, GMT 21:45) – The Trade Balance measures the difference in value between imported and exported goods and services over the reported period. It will be interesting to see whether the New Zealand trade balance already posts an impact from the epidemic. Thursday – 27 February 2020 Gross Domestic Product (USD, GMT 13:30) – US preliminary GDP growth for Q4 is expected to trim to 2.0% from 2.1%. Durable Goods (USD, GMT 13:30) – Durable goods orders are expected to fall -1.5% in January with a -4.7% drop in transportation orders. Defense orders should fall by -29%, following the 101.4% December surge. Boeing orders declined to zero planes, following a dismal 3 planes in January. Tokyo Core CPI and Unemployment Rate (JPY, GMT 23:30) – Tokyo CPI is usually a good proxy for the Japanese economy’s overall inflation rate. In February, the CPI ex Food is expected to have stood at 0.9% y/y. The unemployment rate is expected to have climbed to 2.3% from 2.2% in December. Retail Sales (JPY, GMT 23:50) – Following a precipitous 3-month dive in October -December, due to a prolonged hit to exports from soft global demand and a slide in consumer spending following a nationwide tax hike, January’s Retail Sales are expected to drop to -1.1% on a y/y basis. Friday – 28 February 2020 Unemployment Rate (EUR, GMT 08:55) – The German unemployment rate is expected to have remained at 5% in February. Harmonized Index of Consumer Prices (EUR, GMT 13:00) – The German HICP inflation could rise to 0.3% m/m for February from the drop seen at -0.6% m/m last month. Gross Domestic Product (CAD, GMT 13:30) – A sharp slowing in Canada’s real GDP growth rate to 1.2% (q/q, saar) is expected in Q4 following the 1.3% Q3 growth. This should not add to the backing for a rate cut for the Bank of Canada. Personal Income (USD, GMT 13:30) – A 0.3% rise in personal income in January is anticipated after a 0.2% increase in December, alongside a 0.2% rise in consumption that follows a 0.3% December gain. Always trade with strict risk management. Your capital is the single most important aspect of your trading business.Please note that times displayed based on local time zone and are from time of writing this report.Click HERE to access the full HotForex Economic calendar.Want to learn to trade and analyse the markets? Join our webinars and get analysis and trading ideas combined with better understanding on how markets work. Click HERE to register for FREE!Click HERE to READ more Market news. Andria Pichidi Market Analyst HotForex Disclaimer: This material is provided as a general marketing communication for information purposes only and does not constitute an independent investment research. Nothing in this communication contains, or should be considered as containing, an investment advice or an investment recommendation or a solicitation for the purpose of buying or selling of any financial instrument. All information provided is gathered from reputable sources and any information containing an indication of past performance is not a guarantee or reliable indicator of future performance. Users acknowledge that any investment in FX and CFDs products is characterized by a certain degree of uncertainty and that any investment of this nature involves a high level of risk for which the users are solely responsible and liable. We assume no liability for any loss arising from any investment made based on the information provided in this communication. This communication must not be reproduced or further distributed without our prior written permission.
    • Can I use this EA on my Hotforex platform? How do I do that? 
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.