avatarPauline Evanosky: writer, psychic, channel

Free AI web copilot to create summaries, insights and extended knowledge, download it at here

6094

Abstract

nge(len(<span class="hljs-class"><span class="hljs-keyword">data</span>)):</span>

        try:
            
            <span class="hljs-class"><span class="hljs-keyword">data</span>[i, where] = (<span class="hljs-title">data</span>[<span class="hljs-title">i</span> - <span class="hljs-title">lookback</span> + 1:<span class="hljs-title">i</span> + 1, <span class="hljs-title">close</span>].<span class="hljs-title">mean</span>())</span>
        
        except <span class="hljs-type">IndexError</span>:
            
            pass
        
<span class="hljs-class"><span class="hljs-keyword">data</span> = jump(<span class="hljs-title">data</span>, <span class="hljs-title">lookback</span>)</span>

return <span class="hljs-class"><span class="hljs-keyword">data</span></span></pre></div><div id="0f03"><pre><span class="hljs-attribute">def</span> demarker(Data, lookback, high, low, where):

<span class="hljs-comment"># Calculating DeMAX</span>
<span class="hljs-attribute">for</span> i in range(len(Data)):
    
    <span class="hljs-attribute">if</span> Data[i, high] &gt; Data[i - <span class="hljs-number">1</span>, high]:
        <span class="hljs-attribute">Data</span>[i, where] = Data[i, high] - Data[i - <span class="hljs-number">1</span>, high]
    <span class="hljs-attribute">else</span>:
        <span class="hljs-attribute">Data</span>[i, where] = <span class="hljs-number">0</span>

<span class="hljs-comment"># Calculating the Moving Average on DeMAX</span>
<span class="hljs-attribute">Data</span> = ma(Data, lookback, where, where + <span class="hljs-number">1</span>)        
        
<span class="hljs-comment"># Calculating DeMIN</span>
<span class="hljs-attribute">for</span> i in range(len(Data)):
    
    <span class="hljs-attribute">if</span> Data[i - <span class="hljs-number">1</span>, low] &gt; Data[i, low]:
        <span class="hljs-attribute">Data</span>[i, where + <span class="hljs-number">2</span>] = Data[i - <span class="hljs-number">1</span>, low] - Data[i, low]
    <span class="hljs-attribute">else</span>:
        <span class="hljs-attribute">Data</span>[i, where + <span class="hljs-number">2</span>] = <span class="hljs-number">0</span>    

<span class="hljs-comment"># Calculating the Moving Average on DeMIN</span>
<span class="hljs-attribute">Data</span> = ma(Data, lookback, where + <span class="hljs-number">2</span>, where + <span class="hljs-number">3</span>)        


<span class="hljs-comment"># Calculating DeMarker</span>
<span class="hljs-attribute">for</span> i in range(len(Data)):
    
    <span class="hljs-attribute">Data</span>[i, where + <span class="hljs-number">4</span>] = Data[i, where + <span class="hljs-number">1</span>] / (Data[i, where + <span class="hljs-number">1</span>] + Data[i, where + <span class="hljs-number">3</span>]) 

<span class="hljs-comment"># Removing Excess Columns</span>
<span class="hljs-attribute">Data</span> = deleter(Data, where, <span class="hljs-number">4</span>)

<span class="hljs-attribute">return</span> Data</pre></div><figure id="a207"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*Hzlb4TnTDcvH3sxeXwjTUQ.png"><figcaption><b>EURUSD in the first panel with the 21-period Demarker in the second panel.</b></figcaption></figure><p id="9cfd">Check out my weekly market sentiment report to understand the current positioning and to estimate the future direction of several major markets through complex and simple models working side by side. Find out more about the report through this link:</p><div id="7415" class="link-block">
      <a href="https://coalescence.substack.com/">
        <div>
          <div>
            <h2>Coalescence</h2>
            <div><h3>A Weekly Report Covering FX &amp; Equities Market Positioning Using Complex Models. Let me read it first This site requires…</h3></div>
            <div><p>coalescence.substack.com</p></div>
          </div>
          <div>
            <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/0*7zo8Jv6sfnts5WCL)"></div>
          </div>
        </div>
      </a>
    </div><h1 id="8210">Using the Demarker</h1><p id="0df8">I am not a strong believer in the 0.30/0.70 overbought/oversold levels as I prefer to widen them a little bit to at least 0.20/0.80. Therefore, when we see the signals on the chart following the 0.20/0.80 rule, we can get something like the below plot.</p><ul><li><b>A long (Buy) signal is generated whenever the Demarker reaches 0.20 with the previous value above 0.20.</b></li><li><b>A short (Sell) signal is generated whenever the Demarker reaches 0.80 with the previous value below 0.80.</b></li></ul><div id="ff6e"><pre><span class="hljs-keyword">def</span> <span class="hljs-title function_">signal</span>(<span class="hljs-params"><span class="hljs-title class_">Data</span>, what, buy, sell</span>)<span class="hljs-symbol">:</span></pre></div><div id="0e12"><pre><span class="hljs-type">Data</span> = adder(<span class="hljs-type">Data</span>, <span class="hljs-number">10</span>)</pre></div><div id="4a8f"><pre><span class="hljs-symbol">for</span> i in range(len(<span class="hljs-meta">Data</span>)):
        
    <span class="hljs-meta">if</span> <span class="hljs-meta">Data</span>[i, what] &lt; lower_barrier <span class="hljs-keyword">and</span> <span class="hljs-meta">Data</span>[i - <span class="hljs-number">1</span>, what] &gt; lower_barrier:
        <span class="hljs-meta">Data</span>[i + <span class="hljs-number">1</span>, buy] = <span class="hljs-number">1</span>
        
    <span class="hljs-meta">if</span> <span class="hljs-meta">Data</span>[i, what] &gt; upper_barrier <span class="hljs-keyword">and</span> <span class="hljs-meta">Data</span>[i - <span class="hljs-number">1</span>, what] &lt; upper_barrier:
        <span class="hljs-meta">Data</span>[i + <

Options

span class="hljs-number">1</span>, sell] = -<span class="hljs-number">1</span>

return <span class="hljs-meta">Data</span></pre></div><figure id="7ee7"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*Vwt17ycpypw7FqWrOQ2urQ.png"><figcaption><b>Signal chart.</b></figcaption></figure><p id="251c">Another strategy can be created which states that only the exit of the extreme zones will yield a trade:</p><ul><li><b>A long (Buy) signal is generated whenever the Demarker exits 0.20 with the previous value below 0.20.</b></li><li><b>A short (Sell) signal is generated whenever the Demarker exits 0.80 with the previous value above 0.80.</b></li></ul><div id="47c0"><pre><span class="hljs-keyword">def</span> <span class="hljs-title function_">signal</span>(<span class="hljs-params"><span class="hljs-title class_">Data</span>, what, buy, sell</span>)<span class="hljs-symbol">:</span></pre></div><div id="2fa6"><pre><span class="hljs-type">Data</span> = adder(<span class="hljs-type">Data</span>, <span class="hljs-number">10</span>)</pre></div><div id="f24b"><pre><span class="hljs-symbol">for</span> i in range(len(<span class="hljs-meta">Data</span>)):
        
    <span class="hljs-meta">if</span> <span class="hljs-meta">Data</span>[i, what] &gt; lower_barrier <span class="hljs-keyword">and</span> <span class="hljs-meta">Data</span>[i - <span class="hljs-number">1</span>, what] &lt; lower_barrier:
        <span class="hljs-meta">Data</span>[i + <span class="hljs-number">1</span>, buy] = <span class="hljs-number">1</span>
        
    <span class="hljs-meta">if</span> <span class="hljs-meta">Data</span>[i, what] &lt; upper_barrier <span class="hljs-keyword">and</span> <span class="hljs-meta">Data</span>[i - <span class="hljs-number">1</span>, what] &gt; upper_barrier:
        <span class="hljs-meta">Data</span>[i + <span class="hljs-number">1</span>, sell] = -<span class="hljs-number">1</span>
        
return <span class="hljs-meta">Data</span></pre></div><figure id="2c88"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*_4OQFQtIqhz1AfcsJcXosg.png"><figcaption><b>Signal chart.</b></figcaption></figure><p id="d761">The second technique of waiting before initiating the position showed slightly better results but not statistically different. In anyways, both are losing strategies with the second one losing less (0.94 profit factor compared to 0.96).</p><p id="3618">I have recently partnered with Lumiwealth, and if you want to see how to create all sorts of algorithms yourself, feel free to check out the below link. From algorithmic trading to blockchain and machine learning, they have hands-on detailed courses that I highly recommend.</p><div id="fead" class="link-block">
      <a href="https://www.lumiwealth.com/algorithmic-trading-landing-page/?utm_source=influence&amp;utm_medium=medium&amp;utm_campaign=sofien">
        <div>
          <div>
            <h2>Learn Algorithmic Trading with Python Lumiwealth</h2>
            <div><h3>undefined</h3></div>
            <div><p>undefined</p></div>
          </div>
          <div>
            <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/0*FbCz_ARtbOdywMlC)"></div>
          </div>
        </div>
      </a>
    </div><h1 id="e420">Summary</h1><p id="05a4">To sum up, what I am trying to do is to simply contribute to the world of objective technical analysis which is promoting more transparent techniques and strategies that need to be back-tested before being implemented. This way, technical analysis will get rid of the bad reputation of being subjective and scientifically unfounded.</p><p id="570c">Medium is a hub to interesting reads. I read a lot of articles before I decided to start writing. Consider joining Medium using my referral link (at <b>NO </b>additional cost to you).</p><div id="de8c" class="link-block">
      <a href="https://kaabar-sofien.medium.com/membership">
        <div>
          <div>
            <h2>Join Medium with my referral link — Sofien Kaabar</h2>
            <div><h3>As a Medium member, a portion of your membership fee goes to writers you read, and you get full access to every story…</h3></div>
            <div><p>kaabar-sofien.medium.com</p></div>
          </div>
          <div>
            <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/0*XBqK-oHjNF_4ydU8)"></div>
          </div>
        </div>
      </a>
    </div><p id="5d41">I recommend you always follow the the below steps whenever you come across a trading technique or strategy:</p><ul><li>Have a critical mindset and get rid of any emotions.</li><li>Back-test it using real life simulation and conditions.</li><li>If you find potential, try optimizing it and running a forward test.</li><li>Always include transaction costs and any slippage simulation in your tests.</li><li>Always include risk management and position sizing in your tests.</li></ul><p id="beb3">Finally, even after making sure of the above, stay careful and monitor the strategy because market dynamics may shift and make the strategy unprofitable.</p><p id="4f75">For the paperback link of the book, you may use the following link:</p><div id="355f" class="link-block">
      <a href="https://www.amazon.com/dp/B09VG3SH2P?&amp;linkCode=sl1&amp;tag=sofien-20&amp;linkId=f0daa140733c5f6b08c1e744bd1b98b5&amp;language=en_US&amp;ref_=as_li_ss_tl">
        <div>
          <div>
            <h2>Contrarian Trading Strategies in Python</h2>
            <div><h3>Amazon.com: Contrarian Trading Strategies in Python: 9798434008075: Kaabar, Sofien: Books</h3></div>
            <div><p>www.amazon.co</p></div>
          </div>
          <div>
            <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/0*C7k3f3kawsSsQCVn)"></div>
          </div>
        </div>
      </a>
    </div></article></body>

CHANNELING

In Choosing Books to Read

Channeled Information by my Spirit Guide Seth in Bold Italics

Dog with his nose in a book — Photo by 2Photo Pots on Unsplash

Hi.

Good morning.

You said you wanted to talk about something?

Yes, if it would please you. This is about choosing your reading matter. Reading is like eating food. You will derive some amount of nourishment and/or sustenance from the food you consume. So, too, is it the same with what you read. This might also include the items you watch on television. I say television, though there are more than just the old square boxes upon which to watch things, including your cell phones, your computers, and in some instances, your watches.

When you are a younger person, it matters little the sweets you eat. There is an accompanying sense of you are going to live forever, so why not enjoy the ride type of attitude. As you get older, especially these days, there is the sense that you need to include healthier options in your diet and begin the process of eliminating some of your favorites, like bacon. We suggest moderation is a good policy to go by.

In the “olden days,” this was not so much an option because most people ate what was at hand. Now, unless you live in poverty-stricken circumstances, that choice to either eat with the seasons or to deliberately choose more nutritious sustenance is at hand.

So, the overall mindset of deliberately choosing aspects of your diet is there. The same goes for activities. Moving, albeit more slowly if you are in the older set, is still important. As writers, you all know that you can focus your eyes upon the corner of your room periodically to ease eyestrain, or if you wave your hands about madly to loosen the clenching that can result from many hours at your computer, hunched over and encouraging neck and back strain.

Moderation.

What you might consider is a more deliberate approach to what you read. If you are of a mind to always write detective novels, then the choice of you reading other detective novels is a given.

But bear in mind that you can still benefit from reading the ancient texts. Marcus Aurelius is one. John Tudor another. These collections would illustrate to you what it is like to live in other ages. That, during the time of David Copperfield, when he worked in poverty at a workhouse was mirrored by Charles Dicken’s own self, sold to bondage when his father had to spend time in a debtor’s prison. This is a first-hand account.

Or, the Count of Monte Cristo, (note from Pauline: by Alexander Dumas) how being a prisoner can be explained not, actually, all that much different from your own time.

Read, the classics, not that far away from your own time. We speak in terms of hundreds of years

The immediate histories you learn in school are presented by people who would explain away what they have a personal stake in preventing the word, uncomplimentary to their version of events, to get out. Witness the histories of Blacks and of Indigenous peoples in the Americas. At one time, the world was even more war-like than it is now. Would you suppose Putin would like to read a history written by a person from the West about his war?

It has always been propaganda. It will always be propaganda. Stress the points you want to make and downplay the other parts.

Use this to your advantage and try, as an exercise, to present both sides of the same coin as you write.

Why is meditation good, and why is it bad? Why is chocolate good, and why is it bad?

Become the person to read scientific treaties. Just for a month to see if there is anything there that interests you. Choose, for the sources of your news, different outlets. My channel here, on principle, refuses to listen to anything that smacks of Fox News, just because of the orange-haired one. There might indeed be valuable information coming from that news source, but the chances of it being tainted in a hateful way is too great, so she has removed herself completely from that sphere.

Me: Well, why not? It’s a hell of a way to waste half an hour.

We do not condemn you for your choices, we merely wish to have an example close to hand.

Me: Okay. So, is there a message for me in all of this too?

If you wish a message to be there, a message will be there.

Me: You’re talking in circles again.

Think of it as the classes you took in high school or in college. There is a theme. The teacher has things for you to do or to read with the hope that you will be able to experience something new. This is your opportunity to create your own class. Say, you wanted to read Ray Bradbury. This man lived in the later part of the 20th century from 1920 to 2012. Finding a biography of him would be useful. In fact, you might read more than one biography to garner what life for him might be like. That he had humble beginnings should not surprise you. Many had humble beginnings. Many, like the Vanderbilts, did not. Well, the ones who came later. Reading histories of the times, what was going on in the world? There was a war. They had just finished being in a war.

Hi everybody, Pauline back again. Regarding Ray Bradbury: I found a place from IUPUI Indiana University/Purdue University Indianapolis on the internet here with a timeline of his life. Something I’ve never been sure about is if the facts channeled by my Folk in Spirit are correct. When writing this, I left his birth and death dates open in the paragraph above and filled them in properly later. I knew Ray lived during the Depression. Ray Bradbury is one of my own formative writers. My favorite book is “Zen In the Art of Writing.” I’ve got a couple of copies and will occasionally open them at random to read wherever the book is opened.

I know of David Copperfield and how the part of his life when he was in a workhouse mirrored Charles Dickens’ own life when he worked in a boot blacking factory. However, I was not aware of a John Tudor. Evidently, John Tudor was a baker and a deacon in Boston and wrote a diary, “A Record of More or Less Important Events in Boston, from 1732 to 1793 by an Eye Witness” I just ordered the Kindle version. I wonder if he knew Benjamin Franklin? I also ordered the Kindle version of, “Meditations” by Marcus Aurelius and the audiobook version of the same. I have found that it helps me to read and listen at the same time.

I hope you enjoyed the channeling Seth did and perhaps get some ideas for your own reading.

Channeling
Books
Authors
Classics
Pauline Evanosky
Recommended from ReadMedium